Fix query parameters

This commit is contained in:
Fedor Indutny 2025-01-17 11:36:27 -08:00 committed by GitHub
parent 1bab28239a
commit d2c25fab9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4519,7 +4519,7 @@ function getExpiredMessages(db: ReadableDB): Array<MessageType> {
const rows: Array<MessageTypeUnhydrated> = db
.prepare<Query>(
`
SELECT ${sqlJoin(MESSAGE_COLUMNS_FRAGMENTS)}, expiresAt
SELECT ${MESSAGE_COLUMNS.join(', ')}, expiresAt
FROM messages
WHERE
expiresAt <= $now