mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-14 00:01:03 +00:00
724c88c201
A mechanical prettier --write over server/src, server/tests, server/scripts and shared/src with the workspaces' .prettierrc; nothing but layout and import order changes, and every file keeps the same set of imports. shared is formatted throughout and its format baseline is empty. The server baseline keeps the 35 files that Prettier would grow past their lint:size limit (they need a split first, which is not a formatting change), and the generated entity files stay as their generator writes them.
20 lines
845 B
TypeScript
20 lines
845 B
TypeScript
import { UserSessions } from '../../db/entities/UserSessions.entity';
|
|
import { SchedulingModule } from '../scheduling/scheduling.module';
|
|
import { SessionPurgeJob } from './session-purge.job';
|
|
import { SessionsService } from './sessions.service';
|
|
import { MikroOrmModule } from '@mikro-orm/nestjs';
|
|
import { Module } from '@nestjs/common';
|
|
|
|
/**
|
|
* Session tokens and the rows that let them be revoked. A leaf: it imports no
|
|
* other domain module, so auth (sign-in, logout, the session list), oidc
|
|
* (sign-in) and admin (resets) can all import it without a cycle. The routes
|
|
* over it live in auth, beside the other /api/auth account routes.
|
|
*/
|
|
@Module({
|
|
imports: [SchedulingModule, MikroOrmModule.forFeature([UserSessions])],
|
|
providers: [SessionsService, SessionPurgeJob],
|
|
exports: [SessionsService],
|
|
})
|
|
export class SessionsModule {}
|