Skip to content

Commit

Permalink
Change deleteAttendee call response handling (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyundai authored Jan 14, 2025
2 parents 439d069 + af8ece6 commit 9438d28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions events/scripts/esp-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ export async function deleteAttendeeFromEvent(eventId) {
};
}

if (response.status === 204) return { ok: true, data: { status: 204, attendeeDeleted: true } };
return { ok: true, data: await response.json() };
} catch (error) {
window.lana?.log(`Error: Failed to delete attendee for event ${eventId}:`, error);
Expand Down

0 comments on commit 9438d28

Please sign in to comment.