tududi/backend/models
Chris 2103f633eb
fix: wire CalendarToken model into models/index.js to prevent MCP crashes (#1069)
Fixes #1050

The calendar_token.js model file was creating a circular dependency by
importing sequelize from ./models instead of receiving it as a parameter.
This caused InboxItem and other models to be undefined when accessed by
the MCP inbox tools, resulting in crashes.

Changes:
- Refactored calendar_token.js to follow the standard model pattern
  (export function that receives sequelize parameter)
- Added CalendarToken import in models/index.js
- Set up User<->CalendarToken associations
- Exported CalendarToken from models/index.js

This eliminates the circular dependency and ensures all models are
properly initialized before use.
2026-04-25 01:44:56 +03:00
..
action.js chore(lint): remove unnecessary try/catch and tighten error handling 2025-09-22 15:20:46 +03:00
api_token.js API Access (#495) 2025-11-07 15:19:30 +02:00
area.js Standardize UID implementation across backend 2025-08-06 15:54:45 +03:00
auth_audit_log.js feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
backup.js Feat backups (#686) 2025-12-09 08:00:46 +02:00
caldav_calendar.js feat(caldav): Add CalDAV Synchronization Support (Issue #978) (#1030) 2026-04-17 17:40:39 +03:00
caldav_occurrence_override.js feat(caldav): Add CalDAV Synchronization Support (Issue #978) (#1030) 2026-04-17 17:40:39 +03:00
caldav_remote_calendar.js feat(caldav): Add CalDAV Synchronization Support (Issue #978) (#1030) 2026-04-17 17:40:39 +03:00
caldav_sync_state.js feat(caldav): Add CalDAV Synchronization Support (Issue #978) (#1030) 2026-04-17 17:40:39 +03:00
calendar_token.js fix: wire CalendarToken model into models/index.js to prevent MCP crashes (#1069) 2026-04-25 01:44:56 +03:00
inbox_item.js fix: prevent task name truncation when creating from inbox (#1020) 2026-04-13 23:14:52 +03:00
index.js fix: wire CalendarToken model into models/index.js to prevent MCP crashes (#1069) 2026-04-25 01:44:56 +03:00
note.js Notes page revamp! (#487) 2025-11-06 17:59:30 +02:00
notification.js Fix Telegram notification spam by marking JSON field as changed (#969) 2026-03-24 14:30:31 +02:00
oidc_identity.js feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
oidc_state_nonce.js feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
permission.js chore(lint): remove unnecessary try/catch and tighten error handling 2025-09-22 15:20:46 +03:00
project.js Fix project name overflow and add 6-word validation limit (#972) 2026-03-24 17:36:24 +02:00
recurringCompletion.js Fix recurring structure (#646) 2025-12-04 13:29:37 +02:00
role.js chore(lint): remove unnecessary try/catch and tighten error handling 2025-09-22 15:20:46 +03:00
setting.js Scaffold smtp service (#590) 2025-11-24 17:58:09 +02:00
tag.js Fix tags deletion (#447) 2025-10-23 23:28:56 +03:00
task.js fix: prevent task name truncation when creating from inbox (#1020) 2026-04-13 23:14:52 +03:00
task_attachment.js Add file attacmhments 2025-12-07 14:12:38 +02:00
task_event.js Fix bump issues (#651) 2025-12-04 18:19:40 +02:00
user.js feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
view.js Reorder elements (#687) 2025-12-09 10:51:51 +02:00