Skip to content

Commit

Permalink
fix(htw-293): fix depth issue get globals (#13)
Browse files Browse the repository at this point in the history
* fix(htw-293): fix the bug to fetch nested field while fetch the global by GraphQL query

* chore(htw-293): remove package-lock.json file

* chore(htw-293): restore yarn.lock file
  • Loading branch information
vrajpatelTH authored Oct 8, 2024
1 parent 3326269 commit 848da37
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/node_modules
/uploads
/.yarn/cache
.vscode
1 change: 1 addition & 0 deletions dist/hooks/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ var getGlobal = function (_a) {
equals: extractTenantId({ options: options, req: req }),
},
},
depth: 0,
limit: 1,
})];
case 1:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "payload-tenancy",
"version": "2.1.3",
"version": "2.1.4",
"description": "Multi-tenancy plugin for Payload CMS",
"repository": {
"type": "git",
Expand Down
1 change: 1 addition & 0 deletions src/hooks/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ const getGlobal = async ({
equals: extractTenantId({ options, req }),
},
},
depth: 0,
limit: 1,
});
return doc;
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11530,4 +11530,4 @@ yocto-queue@^0.1.0:
zod@^3.20.2:
version "3.22.4"
resolved "https://registry.yarnpkg.com/zod/-/zod-3.22.4.tgz#f31c3a9386f61b1f228af56faa9255e845cf3fff"
integrity sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==
integrity sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==

0 comments on commit 848da37

Please sign in to comment.