diff --git a/internal/hooks/transaction.go b/internal/hooks/transaction.go index f6269ea..69357fd 100644 --- a/internal/hooks/transaction.go +++ b/internal/hooks/transaction.go @@ -30,12 +30,13 @@ func (r *HooksContainer) bootstrapTransactionHook() { inverseTransactionRecord, err := r.pb.Dao().FindFirstRecordByFilter( "transactions", - "completed = {:completed} && evergrow_quantity = {:quantity} && initiator = {:initiator} && counterparty = {:counterparty}", + "completed = {:completed} && evergrow_quantity = {:quantity} && initiator = {:initiator} && counterparty = {:counterparty} && tx_date = {:tx_date}", dbx.Params{ "completed": false, "quantity": transactionRecord.GetInt("evergrow_quantity"), "initiator": counterpartyRecord.GetId(), "counterparty": initiatorRecord.GetId(), + "tx_date": transactionRecord.GetDateTime("tx_date"), }, ) if err != nil && err != sql.ErrNoRows {