diff options
author | Till <2353100+S7evinK@users.noreply.github.com> | 2022-08-02 17:00:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-02 17:00:16 +0200 |
commit | df5d4dc7a36f7fe5ec17f9da81c535d5c01bd505 (patch) | |
tree | 4cc8ad406f9b621063a09f39b9930c9d1fd99b92 /syncapi/storage/postgres | |
parent | e384eb683f158950956c8e003b33491ad0905b83 (diff) |
Delete correct Send-to-Device messages (#2608)
* Add send-to-device tests
* Update tests, fix message deletion
* PR comments
Diffstat (limited to 'syncapi/storage/postgres')
-rw-r--r-- | syncapi/storage/postgres/send_to_device_table.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/syncapi/storage/postgres/send_to_device_table.go b/syncapi/storage/postgres/send_to_device_table.go index 2734fef3..fd0c1c56 100644 --- a/syncapi/storage/postgres/send_to_device_table.go +++ b/syncapi/storage/postgres/send_to_device_table.go @@ -58,7 +58,7 @@ const selectSendToDeviceMessagesSQL = ` const deleteSendToDeviceMessagesSQL = ` DELETE FROM syncapi_send_to_device - WHERE user_id = $1 AND device_id = $2 AND id < $3 + WHERE user_id = $1 AND device_id = $2 AND id <= $3 ` const selectMaxSendToDeviceIDSQL = "" + |