strapi-plugin-bulk-updater 1.5.6 → 1.5.8
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/_chunks/{BulkUpdater-7YA96VJT.mjs → BulkUpdater-B58N9HHk.mjs} +21 -3
- package/dist/_chunks/BulkUpdater-B58N9HHk.mjs.map +1 -0
- package/dist/_chunks/{BulkUpdater-BTWJq8UX.js → BulkUpdater-ezjrkUaf.js} +21 -3
- package/dist/_chunks/BulkUpdater-ezjrkUaf.js.map +1 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +363 -161
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +363 -161
- package/dist/server/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/_chunks/BulkUpdater-7YA96VJT.mjs.map +0 -1
- package/dist/_chunks/BulkUpdater-BTWJq8UX.js.map +0 -1
|
@@ -4455,10 +4455,19 @@ const BulkUpdater = () => {
|
|
|
4455
4455
|
if (selectedEntries[key]) {
|
|
4456
4456
|
const parts = key.split(KEY_SEP);
|
|
4457
4457
|
if (parts.length === 2) {
|
|
4458
|
-
const
|
|
4458
|
+
const colUid = parts[0];
|
|
4459
|
+
const docId = parts[1];
|
|
4460
|
+
const targetObj = { uid: colUid, documentId: docId };
|
|
4459
4461
|
if (selectedDzBlocks[key] && selectedDzBlocks[key].length > 0) {
|
|
4460
4462
|
targetObj.dynamicZoneIndexes = selectedDzBlocks[key];
|
|
4461
4463
|
}
|
|
4464
|
+
const colPage = collectionPages[colUid];
|
|
4465
|
+
const cachedEntry = colPage?.entries?.find((e) => e.documentId === docId);
|
|
4466
|
+
if (cachedEntry) {
|
|
4467
|
+
if (cachedEntry.status) targetObj.status = cachedEntry.status;
|
|
4468
|
+
if (cachedEntry.publishedAt) targetObj.publishedAt = cachedEntry.publishedAt;
|
|
4469
|
+
if (cachedEntry.locale) targetObj.locale = cachedEntry.locale;
|
|
4470
|
+
}
|
|
4462
4471
|
targets.push(targetObj);
|
|
4463
4472
|
}
|
|
4464
4473
|
}
|
|
@@ -4504,10 +4513,19 @@ const BulkUpdater = () => {
|
|
|
4504
4513
|
if (selectedEntries[key]) {
|
|
4505
4514
|
const parts = key.split(KEY_SEP);
|
|
4506
4515
|
if (parts.length === 2) {
|
|
4507
|
-
const
|
|
4516
|
+
const colUid = parts[0];
|
|
4517
|
+
const docId = parts[1];
|
|
4518
|
+
const targetObj = { uid: colUid, documentId: docId };
|
|
4508
4519
|
if (selectedDzBlocks[key] && selectedDzBlocks[key].length > 0) {
|
|
4509
4520
|
targetObj.dynamicZoneIndexes = selectedDzBlocks[key];
|
|
4510
4521
|
}
|
|
4522
|
+
const colPage = collectionPages[colUid];
|
|
4523
|
+
const cachedEntry = colPage?.entries?.find((e) => e.documentId === docId);
|
|
4524
|
+
if (cachedEntry) {
|
|
4525
|
+
if (cachedEntry.status) targetObj.status = cachedEntry.status;
|
|
4526
|
+
if (cachedEntry.publishedAt) targetObj.publishedAt = cachedEntry.publishedAt;
|
|
4527
|
+
if (cachedEntry.locale) targetObj.locale = cachedEntry.locale;
|
|
4528
|
+
}
|
|
4511
4529
|
targets.push(targetObj);
|
|
4512
4530
|
}
|
|
4513
4531
|
}
|
|
@@ -7517,4 +7535,4 @@ exports.getNestedValue = getNestedValue;
|
|
|
7517
7535
|
exports.getPropertyValue = getPropertyValue;
|
|
7518
7536
|
exports.getSortOptionsForCollection = getSortOptionsForCollection;
|
|
7519
7537
|
exports.parseDynamicZonePath = parseDynamicZonePath;
|
|
7520
|
-
//# sourceMappingURL=BulkUpdater-
|
|
7538
|
+
//# sourceMappingURL=BulkUpdater-ezjrkUaf.js.map
|