Skip to content

Commit

Permalink
remove seriesId from speaker POST and PUT Payload
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyundai committed Dec 16, 2024
1 parent 83572ad commit f2246c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ecc/scripts/esp-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export async function createSpeaker(profile, seriesId) {
const nSpeaker = convertToNSpeaker(profile);

const { host } = API_CONFIG.esp[getEventServiceEnv()];
const raw = JSON.stringify({ ...nSpeaker, seriesId });
const raw = JSON.stringify(nSpeaker);
const options = await constructRequestOptions('POST', raw);

try {
Expand Down Expand Up @@ -588,7 +588,7 @@ export async function getEventSpeaker(seriesId, eventId, speakerId) {
export async function updateSpeaker(profile, seriesId) {
const nSpeaker = convertToNSpeaker(profile);
const { host } = API_CONFIG.esp[getEventServiceEnv()];
const raw = JSON.stringify({ ...nSpeaker, seriesId });
const raw = JSON.stringify(nSpeaker);
const options = await constructRequestOptions('PUT', raw);

try {
Expand Down

0 comments on commit f2246c6

Please sign in to comment.