strapi-plugin-populate-all 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/index.js +1 -1
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -126,7 +126,7 @@ const getPopulateQuery = (modelUid, parentsModelUids = []) => {
|
|
|
126
126
|
const bootstrap = ({ strapi: strapi2 }) => {
|
|
127
127
|
strapi2.db.lifecycles.subscribe((event) => {
|
|
128
128
|
try {
|
|
129
|
-
if (event.action === "beforeFindMany" || event.action === "beforeFindOne") {
|
|
129
|
+
if (event.action === "beforeFindMany" || event.action === "beforeFindOne" || event.action === "beforeCount") {
|
|
130
130
|
if (event.params._q?.includes(PLUGIN_QUERY_DOCUMENT_TAG)) {
|
|
131
131
|
strapi2.log.debug(
|
|
132
132
|
`[populate-all] recursively populate ${event.model.uid}`
|
package/dist/server/index.mjs
CHANGED
|
@@ -125,7 +125,7 @@ const getPopulateQuery = (modelUid, parentsModelUids = []) => {
|
|
|
125
125
|
const bootstrap = ({ strapi: strapi2 }) => {
|
|
126
126
|
strapi2.db.lifecycles.subscribe((event) => {
|
|
127
127
|
try {
|
|
128
|
-
if (event.action === "beforeFindMany" || event.action === "beforeFindOne") {
|
|
128
|
+
if (event.action === "beforeFindMany" || event.action === "beforeFindOne" || event.action === "beforeCount") {
|
|
129
129
|
if (event.params._q?.includes(PLUGIN_QUERY_DOCUMENT_TAG)) {
|
|
130
130
|
strapi2.log.debug(
|
|
131
131
|
`[populate-all] recursively populate ${event.model.uid}`
|
package/package.json
CHANGED