Fix a query

This commit is contained in:
Neil Alexander 2022-08-22 12:01:23 +01:00
parent 83c7984dba
commit b56011514b
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -61,7 +61,7 @@ const selectPreviousEventExistsSQL = "" +
const purgePreviousEventsSQL = ` const purgePreviousEventsSQL = `
DELETE FROM roomserver_previous_events WHERE event_nids && ANY( DELETE FROM roomserver_previous_events WHERE event_nids && ANY(
SELECT ARRAY_AGG(event_nid) FROM roomserver_events WHERE room_nid = 42 SELECT ARRAY_AGG(event_nid) FROM roomserver_events WHERE room_nid = $1
) )
` `