Skip to content

Commit 10709ee

Browse files
committed
fix(query): ensure where is set
1 parent d46f4ff commit 10709ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/utils/query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const getContentQuery = (event: CompatibilityEvent): QueryBuilderParams =
6666
const reservedKeys = ['partial', 'draft', 'only', 'without', 'where', 'sort', 'limit', 'skip']
6767
for (const key of Object.keys(query)) {
6868
if (reservedKeys.includes(key)) { continue }
69-
69+
query.where = query.where || {}
7070
query.where[key] = query[key]
7171
}
7272

0 commit comments

Comments
 (0)