Skip to content

Commit 2ef541e

Browse files
authored
fix: remove unused MySQL WHERE condition
1 parent 16fef9e commit 2ef541e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graphql/operations/proposals.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export default async function (parent, args) {
105105
FROM proposals p
106106
INNER JOIN spaces ON spaces.id = p.space
107107
LEFT JOIN skins ON spaces.id = skins.id
108-
WHERE spaces.settings IS NOT NULL ${queryStr} ${searchSql}
108+
WHERE 1=1 ${queryStr} ${searchSql}
109109
ORDER BY ${orderBy} ${orderDirection}, p.id ASC LIMIT ?, ?
110110
`;
111111
params.push(skip, first);

0 commit comments

Comments
 (0)