Maybe fix the tests

This commit is contained in:
Neil Alexander 2021-07-30 16:54:04 +01:00
parent 62bcd5ad4b
commit 9d69340ef1
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
3 changed files with 24 additions and 6 deletions

View file

@ -158,7 +158,7 @@ func (s *deviceKeysStatements) InsertDeviceKeys(ctx context.Context, txn *sql.Tx
for _, key := range keys {
now := time.Now().Unix()
_, err := sqlutil.TxStmt(txn, s.upsertDeviceKeysStmt).ExecContext(
ctx, key.UserID, key.DeviceID, now, key.DeviceKeys, key.StreamID, key.DisplayName,
ctx, key.UserID, key.DeviceID, now, key.DeviceKeys, key.StreamID, key.DisplayName(),
)
if err != nil {
return err