@nkhang1902/strapi-plugin-export-import-clsx 1.2.8 → 1.2.9

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.2.8",
3
+ "version": "1.2.9",
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": {
@@ -302,7 +302,7 @@ module.exports = ({ strapi }) => ({
302
302
  continue
303
303
  }
304
304
  if (SYSTEM_KEYS.includes(key)) continue;
305
- if (customFields.includes(key)) continue;
305
+ if (customFields.includes(key) && !ALLOWED_JSONB_FIELDS.includes(key)) continue;
306
306
  if ([...skipFields, "wishlist", "availableSlot"].includes(key))
307
307
  continue;
308
308
 
@@ -314,12 +314,13 @@ module.exports = ({ strapi }) => ({
314
314
  continue;
315
315
  }
316
316
 
317
- if (value === null || typeof value !== "object") {
317
+ if (value !== null && typeof value !== "object") {
318
318
  result[key] = value;
319
319
  continue;
320
320
  }
321
321
 
322
322
  if (value !== null && typeof value === "object" && ALLOWED_JSONB_FIELDS.includes(key)) {
323
+ console.log(key, value)
323
324
  result[key] = value.join("|");
324
325
  continue;
325
326
  }