Use eventsarray on insert

This commit is contained in:
Neil Alexander 2021-04-19 13:48:02 +01:00
parent 42623e1f42
commit 4c2d2dbe03
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -136,7 +136,7 @@ func UpStateBlocksRefactor(tx *sql.Tx) error {
VALUES ($1)
ON CONFLICT (event_nids) DO UPDATE SET event_nids=$1
RETURNING state_block_nid
`, events).Scan(&blocknid)
`, eventsarray).Scan(&blocknid)
if err != nil {
return fmt.Errorf("tx.QueryRow.Scan (insert new block): %w", err)
}