@nkhang1902/strapi-plugin-export-import-clsx 1.2.6 → 1.2.7
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.
|
|
3
|
+
"version": "1.2.7",
|
|
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": {
|
|
@@ -427,16 +427,20 @@ module.exports = ({ strapi }) => ({
|
|
|
427
427
|
}
|
|
428
428
|
|
|
429
429
|
if (existing) {
|
|
430
|
-
await strapi.documents(contentType).update(
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
430
|
+
await strapi.documents(contentType).update({
|
|
431
|
+
documentId: existing.documentId,
|
|
432
|
+
data,
|
|
433
|
+
transaction: trx,
|
|
434
|
+
});
|
|
434
435
|
results.updated++;
|
|
435
436
|
} else {
|
|
436
|
-
await strapi.documents(contentType).create(
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
437
|
+
await strapi.documents(contentType).create({
|
|
438
|
+
data: {
|
|
439
|
+
...data,
|
|
440
|
+
event: { documentId: eventId },
|
|
441
|
+
},
|
|
442
|
+
transaction: trx,
|
|
443
|
+
});
|
|
440
444
|
results.created++;
|
|
441
445
|
}
|
|
442
446
|
} catch (err) {
|