fixes
All checks were successful
Build And Push Image / docker (push) Successful in 3m54s

This commit is contained in:
2025-08-13 16:47:53 +02:00
parent 4b1a77de90
commit b833826a1e
6 changed files with 677 additions and 227 deletions

View File

@@ -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
}