From dde72a1b1b3154e3effb9166291fdb8d59f16207 Mon Sep 17 00:00:00 2001 From: Luca <102960244+Luca-Timo@users.noreply.github.com> Date: Mon, 11 May 2026 10:53:12 +0200 Subject: [PATCH] fix(events): strip customer_account_ids from update spread --- backend/src/routes/adminEvents.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/backend/src/routes/adminEvents.js b/backend/src/routes/adminEvents.js index e441dab3..ae1443dc 100644 --- a/backend/src/routes/adminEvents.js +++ b/backend/src/routes/adminEvents.js @@ -1262,6 +1262,13 @@ router.put('/:id', adminAuth, requirePermission('events.edit'), requireEventOwne } delete updates.regenerate_client_token; + // customer_account_ids (#354) is a body-only field consumed + // separately below by customerAccountsService.setAssignmentsForEvent + // — it isn't a column on the events table, so spreading it into + // the UPDATE statement throws "column does not exist" and crashes + // the entire edit with 500 Failed to update event. + delete updates.customer_account_ids; + // Log the update request for debugging logger.debug('Update event request', { id,