Skip to content

Commit

Permalink
fixup! fixup! Optimised queries made by get helper for posts
Browse files Browse the repository at this point in the history
  • Loading branch information
allouis committed Mar 14, 2024
1 parent d535440 commit 2e61eeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ghost/core/core/frontend/helpers/get.js
Expand Up @@ -148,8 +148,8 @@ function optimizeFilterCacheablity(resource, options) {
return noOptimisation;
}
const queries = parsedFilter.$and || [parsedFilter];
const query = queries.find((query) => {
return query?.id?.$ne;
const query = queries.find((q) => {
return q?.id?.$ne;
});

if (!query) {
Expand Down

0 comments on commit 2e61eeb

Please sign in to comment.