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
Description: getCurrentActorFromAls is referenced inside createAdminUser but defined at the bottom of auth.service.ts after an import block. While JavaScript hoisting keeps it functional, the structure is confusing and the function relies on imports that are explicitly suppressed with void — move it to a shared utility.
File(s): backend/src/auth/auth.service.ts
Priority: Low
Implementation & verification: Trace all controller, service, provider, and module-registration callers before changing the implementation so the DTO and HTTP-error contract remains stable. Add focused automated coverage for the reported failure mode and the expected successful path, mocking external services where applicable.
Area: Backend
getCurrentActorFromAlsis referenced insidecreateAdminUserbut defined at the bottom ofauth.service.tsafter an import block. While JavaScript hoisting keeps it functional, the structure is confusing and the function relies on imports that are explicitly suppressed withvoid— move it to a shared utility.backend/src/auth/auth.service.ts