@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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contentstack/cli-cm-bulk-publish",
3
3
  "description": "Contentstack CLI plugin for bulk publish actions",
4
- "version": "1.4.3",
4
+ "version": "1.4.4",
5
5
  "author": "Contentstack",
6
6
  "bugs": "https://github.com/contentstack/cli/issues",
7
7
  "dependencies": {
@@ -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
  }