tududi/backend/modules
Chris 34dc0373fb
fix: correct Sequelize alias case for OIDCIdentity-User association (#1015)
* fix: use nullish coalescing for recurrence weekday to allow Sunday selection

Fixes #812

When creating a "Monthly on weekday" recurring task, the selector would
jump back to Monday when trying to select Sunday. This was caused by using
the logical OR operator (||) instead of the nullish coalescing operator (??)
when handling the recurrence_weekday value.

Since Sunday is represented as 0, the || operator treated it as falsy and
defaulted to null/undefined, which then defaulted to 1 (Monday).

Changes:
- Replace || with ?? for recurrence_weekday in TaskRecurrenceCard.tsx
- Replace || with ?? for recurrence_weekday in TaskDetails.tsx
- Also fix recurrence_week_of_month and recurrence_month_day for consistency

* fix: correct Sequelize alias case for OIDCIdentity-User association

Fixes #1013

Changed all instances of lowercase 'user' to 'User' to match the
association defined in models/index.js. This resolves the Sequelize
error during OIDC callback:
"User is associated to OIDCIdentity using an alias. You've included
an alias (user), but it does not match the alias(es) defined in your
association (User)."

Changes:
- oidcIdentityService.js: 'user' -> 'User'
- provisioningService.js: 'user' -> 'User' (2 instances)
2026-04-13 19:29:50 +03:00
..
admin Fix admin password update silently failing due to Sequelize VIRTUAL field (#893) 2026-03-03 15:44:41 +02:00
areas Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
auth feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
backup Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
feature-flags feat: Add MCP Integration with client-agnostic instructions (#953) 2026-03-20 16:55:49 +02:00
habits Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
inbox feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
mcp fix: use correct InboxItem model name in MCP inbox tools (#986) 2026-04-12 09:10:42 +03:00
notes Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
notifications Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
oidc fix: correct Sequelize alias case for OIDCIdentity-User association (#1015) 2026-04-13 19:29:50 +03:00
projects Fix project update API to support clearing nullable fields (#961) 2026-03-22 22:17:23 +02:00
quotes Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
search Show original task names for recurring tasks in search results (#914) (#915) 2026-03-06 08:57:10 +02:00
shares Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
tags Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
tasks feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
telegram Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
url feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
users feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
views Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00