@fourlights/strapi-plugin-deep-populate 1.5.0 → 1.5.1

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.
@@ -14617,7 +14617,7 @@ const getHash = (params) => {
14617
14617
  const cache = ({ strapi: strapi2 }) => ({
14618
14618
  async get(params) {
14619
14619
  const entry = await strapi2.documents("plugin::deep-populate.cache").findFirst({ filters: { hash: { $eq: getHash(params) } } });
14620
- return entry ? entry.populate : null;
14620
+ return entry && !isEmpty__default.default(entry.populate) ? entry.populate : null;
14621
14621
  },
14622
14622
  async set({ populate: populate2, dependencies, ...params }) {
14623
14623
  const documentService = strapi2.documents("plugin::deep-populate.cache");
@@ -14592,7 +14592,7 @@ const getHash = (params) => {
14592
14592
  const cache = ({ strapi: strapi2 }) => ({
14593
14593
  async get(params) {
14594
14594
  const entry = await strapi2.documents("plugin::deep-populate.cache").findFirst({ filters: { hash: { $eq: getHash(params) } } });
14595
- return entry ? entry.populate : null;
14595
+ return entry && !isEmpty$1(entry.populate) ? entry.populate : null;
14596
14596
  },
14597
14597
  async set({ populate: populate2, dependencies, ...params }) {
14598
14598
  const documentService = strapi2.documents("plugin::deep-populate.cache");
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.5.0",
2
+ "version": "1.5.1",
3
3
  "keywords": [
4
4
  "strapi",
5
5
  "strapi-plugin",