diff --git a/src/graphql/operations/messages.ts b/src/graphql/operations/messages.ts index 31747c59..5ca6260c 100644 --- a/src/graphql/operations/messages.ts +++ b/src/graphql/operations/messages.ts @@ -29,7 +29,7 @@ export default async function (parent, args) { const query = ` SELECT m.* FROM messages m - WHERE id IS NOT NULL ${queryStr} + WHERE 1=1 ${queryStr} ORDER BY ${orderBy} ${orderDirection} LIMIT ?, ? `; params.push(skip, first);