You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(auth): address CodeRabbit/Copilot review findings on invite gate
- email template: add non-empty <title> to signup-invite.html
- auth.controller: short-circuit UserService.count() when cap is null
- auth.controller: coerce sign.cap to Number + guard non-finite at gate
- auth.controller: only consume invite when it actually opened the gate
(sign.up=true = invite not required, burning it would be wrong)
- auth.invitation.controller: add full JSDoc (@param/@returns) to all
controller functions per project standard
- auth.invitations.yml: add InvitationListItem schema (token omitted);
admin list endpoint now references it instead of Invitation
- auth.invitation.model.mongoose.js: add JSDoc to addID virtual getter
- auth.invitation.integration.tests.js: add @returns to test helpers;
fix cap test to create admin before setting cap (was order-dependent)
- auth.signout.controller.unit.tests.js: complete InvitationService mock
- auth.silent.catch.unit.tests.js: complete InvitationService mock
0 commit comments