feat: add datetime to transaction tg message

* closes #11
This commit is contained in:
Mohamed Sohail 2024-02-05 16:14:48 +03:00
parent 630abf1a99
commit cc21913568
Signed by: kamikazechaser
GPG Key ID: 7DD45520C01CD85D

View File

@ -73,10 +73,11 @@ func (r *HooksContainer) bootstrapTransactionHook() {
} }
msg := fmt.Sprintf( msg := fmt.Sprintf(
"New purchase survey completed:\n\ninitiator: %s\ncounterparty: %s\nquantity: %d\nfeedback: %s", "New purchase survey completed:\n\ninitiator: %s\ncounterparty: %s\nquantity: %d\ndate: %s\nfeedback: %s",
fmt.Sprintf("%s (%s)", initiatorRecord.GetString("name"), initiatorRecord.GetString("participant_type")), fmt.Sprintf("%s (%s)", initiatorRecord.GetString("name"), initiatorRecord.GetString("participant_type")),
fmt.Sprintf("%s (%s)", counterpartyRecord.GetString("name"), counterpartyRecord.GetString("participant_type")), fmt.Sprintf("%s (%s)", counterpartyRecord.GetString("name"), counterpartyRecord.GetString("participant_type")),
transactionRecord.GetInt("evergrow_quantity"), transactionRecord.GetInt("evergrow_quantity"),
transactionRecord.GetDateTime("tx_date").String(),
transactionRecord.GetString("feedback"), transactionRecord.GetString("feedback"),
) )