@contentstack/cli-cm-bulk-publish 1.4.3 → 1.4.4
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
|
@@ -192,6 +192,12 @@ async function getSyncEntries(
|
|
|
192
192
|
|
|
193
193
|
const entriesResponse = await Stack.sync(syncData);
|
|
194
194
|
|
|
195
|
+
if (filter?.content_type_uid?.length) {
|
|
196
|
+
entriesResponse.items = entriesResponse.items.filter((entry) =>
|
|
197
|
+
filter?.content_type_uid.includes(entry.content_type_uid),
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
|
|
195
201
|
if (entriesResponse.items.length > 0) {
|
|
196
202
|
await bulkAction(stack, entriesResponse.items, bulkPublish, filter, destEnv, apiVersion);
|
|
197
203
|
}
|