-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:digitalservicebund/a2j-rechtsantrag…
…stelle-strapi
- Loading branch information
Showing
8 changed files
with
2,275 additions
and
1,961 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/node_modules/strapi-plugin-populate-deep/server/bootstrap.js b/node_modules/strapi-plugin-populate-deep/server/bootstrap.js | ||
index cb357c6..768359b 100644 | ||
--- a/node_modules/strapi-plugin-populate-deep/server/bootstrap.js | ||
+++ b/node_modules/strapi-plugin-populate-deep/server/bootstrap.js | ||
@@ -5,7 +5,10 @@ module.exports = ({ strapi }) => { | ||
// Subscribe to the lifecycles that we are intrested in. | ||
strapi.db.lifecycles.subscribe((event) => { | ||
if (event.action === 'beforeFindMany' || event.action === 'beforeFindOne') { | ||
- const populate = event.params?.populate; | ||
+ let populate = event.params?.populate | ||
+ if (typeof populate === 'string') { | ||
+ populate = [populate] | ||
+ } | ||
const defaultDepth = strapi.plugin('strapi-plugin-populate-deep')?.config('defaultDepth') || 5 | ||
|
||
if (populate && populate[0] === 'deep') { |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.