@nkhang1902/strapi-plugin-export-import-clsx 1.8.4 → 1.8.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nkhang1902/strapi-plugin-export-import-clsx",
3
- "version": "1.8.4",
3
+ "version": "1.8.6",
4
4
  "description": "A powerful Strapi plugin for exporting and importing data with Excel support and advanced filtering",
5
5
  "main": "./strapi-server.js",
6
6
  "scripts": {
@@ -352,7 +352,6 @@ module.exports = ({ strapi }) => ({
352
352
  .map(([key]) => key);
353
353
 
354
354
  if (relationFields.includes("event")) {
355
- console.log(entries[0].event)
356
355
  event = await strapi.documents("api::event.event").findFirst({
357
356
  filters: {
358
357
  id: {
@@ -361,7 +360,6 @@ module.exports = ({ strapi }) => ({
361
360
  },
362
361
  populate: "*",
363
362
  })
364
- console.log(event)
365
363
  }
366
364
 
367
365
  const mediaFields = Object.entries(attr)
@@ -431,7 +431,8 @@ module.exports = ({ strapi }) => ({
431
431
  });
432
432
  results.updated++;
433
433
  } else {
434
- if (strapi.contentTypes[contentType].attributes?.event) {
434
+ if (strapi.contentTypes[contentType].attributes) {
435
+ console.log(JSON.stringify(strapi.contentTypes[contentType].attributes, null, 2));
435
436
  data.event = { documentId: eventId };
436
437
  }
437
438
  await strapi.documents(contentType).create({