Fix queries

This commit is contained in:
Neil Alexander 2022-08-16 17:25:49 +01:00
parent 435616b48f
commit 50518dc058
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 2 additions and 2 deletions

View file

@ -137,7 +137,7 @@ const selectRoomNIDsForEventNIDsSQL = "" +
"SELECT event_nid, room_nid FROM roomserver_events WHERE event_nid = ANY($1)"
const selectEventRejectedSQL = "" +
"SELECT is_rejected FROM roomserver_Events WHERE event_id = $1"
"SELECT is_rejected FROM roomserver_events WHERE event_id = $1"
type eventStatements struct {
insertEventStmt *sql.Stmt

View file

@ -110,7 +110,7 @@ const selectRoomNIDsForEventNIDsSQL = "" +
"SELECT event_nid, room_nid FROM roomserver_events WHERE event_nid IN ($1)"
const selectEventRejectedSQL = "" +
"SELECT is_rejected FROM roomserver_Events WHERE event_id = $1"
"SELECT is_rejected FROM roomserver_events WHERE event_id = $1"
type eventStatements struct {
db *sql.DB