From cd10f3302b465f94e67fc3d854abcdae67534781 Mon Sep 17 00:00:00 2001 From: Qiyun Dai Date: Wed, 11 Dec 2024 16:11:51 -0600 Subject: [PATCH] set status to draft on POST --- ecc/scripts/esp-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecc/scripts/esp-controller.js b/ecc/scripts/esp-controller.js index e2cb7f9c..ab13c302 100644 --- a/ecc/scripts/esp-controller.js +++ b/ecc/scripts/esp-controller.js @@ -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 {