Skip to content

Commit

Permalink
Merge pull request #1706 from contentstack/development
Browse files Browse the repository at this point in the history
Fix: Unpublish command
  • Loading branch information
harshithad0703 authored Dec 11, 2024
2 parents 9d95550 + 097217e commit b1ab24e
Show file tree
Hide file tree
Showing 5 changed files with 171 additions and 168 deletions.
40 changes: 20 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/contentstack-bulk-publish/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli-cm-bulk-publish",
"description": "Contentstack CLI plugin for bulk publish actions",
"version": "1.7.0",
"version": "1.7.1",
"author": "Contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions packages/contentstack-bulk-publish/src/producer/unpublish.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ async function getSyncEntries(
if (queryParamsObj.type) {
syncData['type'] = queryParamsObj.type;
}
if(queryParamsObj.content_type_uid) {
syncData['content_type_uid'] = queryParamsObj.content_type_uid;
}

const entriesResponse = await Stack.sync(syncData);
if (entriesResponse.items.length > 0) {
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@contentstack/cli-auth": "~1.3.22",
"@contentstack/cli-cm-bootstrap": "~1.13.0",
"@contentstack/cli-cm-branches": "~1.2.0",
"@contentstack/cli-cm-bulk-publish": "~1.7.0",
"@contentstack/cli-cm-bulk-publish": "~1.7.1",
"@contentstack/cli-cm-export": "~1.14.1",
"@contentstack/cli-cm-clone": "~1.13.0",
"@contentstack/cli-cm-export-to-csv": "~1.7.3",
Expand Down
Loading

0 comments on commit b1ab24e

Please sign in to comment.