oo there is a extra and

This commit is contained in:
qwqtoday 2024-08-09 15:35:47 +08:00
parent 8e9dd3f1f8
commit a6f5918715
2 changed files with 2 additions and 2 deletions

View file

@ -68,7 +68,7 @@ const selectThreadsSQL = "" +
" JOIN syncapi_output_room_events ON syncapi_output_room_events.event_id = syncapi_relations.event_id" +
" WHERE syncapi_relations.room_id = $1" +
" AND syncapi_relations.rel_type = 'm.thread'" +
" AND syncapi_relations.id >= $2 AND" +
" AND syncapi_relations.id >= $2" +
" ORDER BY syncapi_relations.id LIMIT $3"
const selectThreadsWithSenderSQL = "" +

View file

@ -69,7 +69,7 @@ const selectThreadsSQL = "" +
" JOIN syncapi_output_room_events ON syncapi_output_room_events.event_id = syncapi_relations.event_id" +
" WHERE syncapi_relations.room_id = $1" +
" AND syncapi_relations.rel_type = 'm.thread'" +
" AND syncapi_relations.id >= $2 AND" +
" AND syncapi_relations.id >= $2" +
" ORDER BY syncapi_relations.id LIMIT $3"
const selectThreadsWithSenderSQL = "" +