Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ export function entryCreateScript(contentType) {

const entriesSearchResponse = await managementAPIClient
.stack({ api_key: stackSDKInstance.api_key, branch_uid: branchName })
.contentType('${contentType}')
.contentType(contentType)
.entry()
.query(requestObject)
.find();
Expand All @@ -482,7 +482,7 @@ export function entryCreateScript(contentType) {
if (skip >= entriesSearchResponse.count) {
return entries;
}
return await getEntries(branchName, skip, limit, entries);
return await getEntries(branchName, contentType, skip, limit, entries);
}
return entries;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ export function entryCreateUpdateScript(contentType) {

const entriesSearchResponse = await managementAPIClient
.stack({ api_key: stackSDKInstance.api_key, branch_uid: branchName })
.contentType('${contentType}')
.contentType(contentType)
.entry()
.query(requestObject)
.find();
Expand All @@ -496,7 +496,7 @@ export function entryCreateUpdateScript(contentType) {
if (skip >= entriesSearchResponse.count) {
return entries;
}
return await getEntries(branchName, skip, limit, entries);
return await getEntries(branchName, contentType, skip, limit, entries);
}
return entries;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ export function entryUpdateScript(contentType) {

const entriesSearchResponse = await managementAPIClient
.stack({ api_key: stackSDKInstance.api_key, branch_uid: branchName })
.contentType('${contentType}')
.contentType(contentType)
.entry()
.query(requestObject)
.find();
Expand Down