mirror of
https://github.com/immich-app/immich.git
synced 2025-06-03 21:54:21 -04:00
* refactor: user repository * refactor: user module * refactor: move database into infra * refactor(cli): use user core * chore: import path * chore: tests
23 lines
728 B
TypeScript
23 lines
728 B
TypeScript
import { DomainModule } from '@app/domain';
|
|
import { InfraModule, SystemConfigEntity } from '@app/infra';
|
|
import { Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { DisablePasswordLoginCommand, EnablePasswordLoginCommand } from './commands/password-login';
|
|
import { PromptPasswordQuestions, ResetAdminPasswordCommand } from './commands/reset-admin-password.command';
|
|
|
|
@Module({
|
|
imports: [
|
|
DomainModule.register({
|
|
imports: [InfraModule],
|
|
}),
|
|
TypeOrmModule.forFeature([SystemConfigEntity]),
|
|
],
|
|
providers: [
|
|
ResetAdminPasswordCommand,
|
|
PromptPasswordQuestions,
|
|
EnablePasswordLoginCommand,
|
|
DisablePasswordLoginCommand,
|
|
],
|
|
})
|
|
export class AppModule {}
|