diff --git a/syncapi/storage/postgres/send_to_device_table.go b/syncapi/storage/postgres/send_to_device_table.go index 54b924ea9..64591d796 100644 --- a/syncapi/storage/postgres/send_to_device_table.go +++ b/syncapi/storage/postgres/send_to_device_table.go @@ -50,7 +50,7 @@ const insertSendToDeviceMessageSQL = ` ` const selectSendToDeviceMessagesSQL = ` - SELECT id, sender, user_id, device_id, content, sent_by_token + SELECT id, user_id, device_id, content, sent_by_token FROM syncapi_send_to_device WHERE user_id = $1 AND device_id = $2 ` diff --git a/syncapi/storage/sqlite3/send_to_device_table.go b/syncapi/storage/sqlite3/send_to_device_table.go index 838ad0805..9ba8fe055 100644 --- a/syncapi/storage/sqlite3/send_to_device_table.go +++ b/syncapi/storage/sqlite3/send_to_device_table.go @@ -100,9 +100,9 @@ func (s *sendToDeviceStatements) SelectSendToDeviceMessages( for rows.Next() { var id types.SendToDeviceNID - var sender, userID, deviceID, content string + var userID, deviceID, content string var sentByToken *string - if err = rows.Scan(&id, &sender, &userID, &deviceID, &content, &sentByToken); err != nil { + if err = rows.Scan(&id, &userID, &deviceID, &content, &sentByToken); err != nil { return } event := types.SendToDeviceEvent{