Skip to content

Commit

Permalink
fix(query): ensure where is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Atinux committed Aug 12, 2022
1 parent d46f4ff commit 10709ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/utils/query.ts
Expand Up @@ -66,7 +66,7 @@ export const getContentQuery = (event: CompatibilityEvent): QueryBuilderParams =
const reservedKeys = ['partial', 'draft', 'only', 'without', 'where', 'sort', 'limit', 'skip']
for (const key of Object.keys(query)) {
if (reservedKeys.includes(key)) { continue }

query.where = query.where || {}
query.where[key] = query[key]
}

Expand Down

0 comments on commit 10709ee

Please sign in to comment.