Skip to content

Commit

Permalink
Merge pull request #238 from adobecom/dev
Browse files Browse the repository at this point in the history
Dev to Stage
  • Loading branch information
apganapa-adobe authored Oct 1, 2024
2 parents bed919f + 4ff309f commit a56c802
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ecc/scripts/esp-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ export async function updateSpeaker(profile, seriesId) {
}

export async function updateEvent(eventId, payload) {
const { host } = getAPIConfig().esl[ECC_ENV];
const { host } = getAPIConfig().esl[getECCEnv()];
const raw = JSON.stringify({ ...payload, liveUpdate: false });
const options = await constructRequestOptions('PUT', raw);

Expand All @@ -553,7 +553,7 @@ export async function updateEvent(eventId, payload) {
}

export async function publishEvent(eventId, payload) {
const { host } = getAPIConfig().esl[ECC_ENV];
const { host } = getAPIConfig().esl[getECCEnv()];
const raw = JSON.stringify({ ...payload, published: true, liveUpdate: true });
const options = await constructRequestOptions('PUT', raw);

Expand All @@ -574,7 +574,7 @@ export async function publishEvent(eventId, payload) {
}

export async function unpublishEvent(eventId, payload) {
const { host } = getAPIConfig().esl[ECC_ENV];
const { host } = getAPIConfig().esl[getECCEnv()];
const raw = JSON.stringify({ ...payload, published: false, liveUpdate: true });
const options = await constructRequestOptions('PUT', raw);

Expand Down

0 comments on commit a56c802

Please sign in to comment.