Clean up codebase and reorganize plugin architecture
All checks were successful
Build And Push Image / docker (push) Successful in 1m30s
All checks were successful
Build And Push Image / docker (push) Successful in 1m30s
- Archive documentation files to docs-archive/ - Remove numbered prefixes from plugin files for cleaner organization - Remove unused dependencies (@nuxt/ui, @vuepic/vue-datepicker) - Update event components and API endpoints - Simplify plugin structure with descriptive names
This commit is contained in:
@@ -117,10 +117,24 @@ export default defineEventHandler(async (event) => {
|
||||
}
|
||||
}
|
||||
|
||||
// Get the event to find the proper event_id for RSVP tracking
|
||||
let rsvpEventId = eventId; // Default to the provided eventId
|
||||
try {
|
||||
// Try to get the event_id field if it exists in the event
|
||||
if (eventDetails.event_id) {
|
||||
rsvpEventId = eventDetails.event_id;
|
||||
console.log('[RSVP] Using event.event_id for RSVP:', rsvpEventId);
|
||||
} else {
|
||||
console.log('[RSVP] Using provided eventId for RSVP:', rsvpEventId);
|
||||
}
|
||||
} catch (eventIdError) {
|
||||
console.log('[RSVP] Could not get event_id, using provided eventId:', rsvpEventId);
|
||||
}
|
||||
|
||||
// Create RSVP record
|
||||
const rsvpData = {
|
||||
record_type: 'rsvp',
|
||||
event_id: eventId,
|
||||
event_id: rsvpEventId, // Use the business event_id field
|
||||
member_id: member.member_id || member.Id,
|
||||
rsvp_status: body.rsvp_status,
|
||||
payment_status: paymentStatus,
|
||||
|
||||
Reference in New Issue
Block a user