Skip to content

Commit

Permalink
set status to draft on POST
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyundai committed Dec 11, 2024
1 parent 932a5cd commit cd10f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecc/scripts/esp-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ export async function getSeriesById(seriesId) {

export async function createSeries(seriesData) {
const { host } = API_CONFIG.esp[getEventServiceEnv()];
const raw = JSON.stringify(seriesData);
const raw = JSON.stringify({ ...seriesData, seriesStatus: 'draft' });
const options = await constructRequestOptions('POST', raw);

try {
Expand Down

0 comments on commit cd10f33

Please sign in to comment.