mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Use eventsarray on insert
This commit is contained in:
parent
42623e1f42
commit
4c2d2dbe03
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue