This commit is contained in:
@@ -135,12 +135,12 @@ export default defineEventHandler(async (event) => {
|
||||
|
||||
const newRSVP = await eventsClient.createRSVP(rsvpData);
|
||||
|
||||
// Update event attendee count
|
||||
// Update event attendee count using the new force update method
|
||||
try {
|
||||
await updateEventAttendeeCount(eventId);
|
||||
console.log('[RSVP] ✅ Updated event attendee count for event:', eventId);
|
||||
const newAttendeeCount = await eventsClient.forceUpdateEventAttendeeCount(eventId);
|
||||
console.log('[RSVP] ✅ Force updated event attendee count for event:', eventId, 'to:', newAttendeeCount);
|
||||
} catch (countError) {
|
||||
console.log('[RSVP] ⚠️ Failed to update attendee count:', countError);
|
||||
console.log('[RSVP] ⚠️ Failed to force update attendee count:', countError);
|
||||
// Don't fail the RSVP creation if count update fails
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user