Fix type safety and data consistency in events system
All checks were successful
Build And Push Image / docker (push) Successful in 3m25s
All checks were successful
Build And Push Image / docker (push) Successful in 3m25s
- Add proper TypeScript type annotations and assertions - Handle string/number conversion for attendee counts consistently - Improve null/undefined checks for events array - Make event handlers async for better error handling - Fix data type inconsistencies between components and API
This commit is contained in:
@@ -369,8 +369,16 @@ export function createNocoDBEventsClient() {
|
||||
console.log('[nocodb-events] Finding events for member:', memberId);
|
||||
|
||||
try {
|
||||
// For now, just get all visible events (we'll add RSVP logic later)
|
||||
const events = await this.findAll(filters);
|
||||
// For now, just get all visible events using the working findAll method
|
||||
// Remove complex filtering temporarily to fix the 422 errors
|
||||
const simpleFilters = {
|
||||
status: filters?.status,
|
||||
limit: (filters as any)?.limit,
|
||||
offset: (filters as any)?.offset
|
||||
};
|
||||
|
||||
console.log('[nocodb-events] Using simplified filters to avoid 422 errors:', simpleFilters);
|
||||
const events = await this.findAll(simpleFilters);
|
||||
|
||||
// TODO: Add RSVP lookup from separate table
|
||||
// For now, return events without RSVP status
|
||||
|
||||
Reference in New Issue
Block a user