diff --git a/apps/backend/src/routers/users.ts b/apps/backend/src/routers/users.ts index 2a982b164..dda6f5b84 100644 --- a/apps/backend/src/routers/users.ts +++ b/apps/backend/src/routers/users.ts @@ -59,12 +59,9 @@ const usersRouter = router({ // Mangle duplicate schedule names data.userData.schedules = mangleDuplicateScheduleNames(data.userData.schedules); - - // Don't await because the show must go on without RDS. - RDS.upsertGuestUserData(db, data) - .catch((error) => console.error('Failed to upsert user data:', error)); - return ddbClient.insertItem(data); + return Promise.all([ddbClient.insertItem(data), RDS.upsertGuestUserData(db, data) + .catch((error) => console.error('Failed to upsert user data:', error))]); } ),