Convert back to pq.Int64Array

This commit is contained in:
Neil Alexander 2021-04-19 13:47:03 +01:00
parent 2d71273fdc
commit 42623e1f42
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -125,6 +125,10 @@ func UpStateBlocksRefactor(tx *sql.Tx) error {
events = append(events, types.EventNID(e))
}
events = events[:util.SortAndUnique(events)]
eventsarray = eventsarray[:0]
for _, e := range events {
eventsarray = append(eventsarray, int64(e))
}
var blocknid types.StateBlockNID
err = tx.QueryRow(`