db_postgres: use tx for all queries in StoreClientDeliveryReceipts
This commit is contained in:
parent
79dbb20f98
commit
d334bb18a2
@ -417,7 +417,7 @@ func (db *PostgresDB) StoreClientDeliveryReceipts(networkID int64, client string
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
stmt, err := db.db.Prepare(`
|
stmt, err := tx.Prepare(`
|
||||||
INSERT INTO "DeliveryReceipt" (network, target, client, internal_msgid)
|
INSERT INTO "DeliveryReceipt" (network, target, client, internal_msgid)
|
||||||
VALUES ($1, $2, $3, $4)
|
VALUES ($1, $2, $3, $4)
|
||||||
RETURNING id`)
|
RETURNING id`)
|
||||||
|
Loading…
Reference in New Issue
Block a user