mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
chore(server): use absolute import paths (#8080)
update server to use absolute import paths
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
import { DomainModule } from '@app/domain';
|
||||
import { InfraModule } from '@app/infra';
|
||||
import { Module } from '@nestjs/common';
|
||||
import { ListUsersCommand } from './commands/list-users.command';
|
||||
import { DisableOAuthLogin, EnableOAuthLogin } from './commands/oauth-login';
|
||||
import { DisablePasswordLoginCommand, EnablePasswordLoginCommand } from './commands/password-login';
|
||||
import { PromptPasswordQuestions, ResetAdminPasswordCommand } from './commands/reset-admin-password.command';
|
||||
import { DomainModule } from 'src/domain/domain.module';
|
||||
import { ListUsersCommand } from 'src/immich-admin/commands/list-users.command';
|
||||
import { DisableOAuthLogin, EnableOAuthLogin } from 'src/immich-admin/commands/oauth-login';
|
||||
import { DisablePasswordLoginCommand, EnablePasswordLoginCommand } from 'src/immich-admin/commands/password-login';
|
||||
import {
|
||||
PromptPasswordQuestions,
|
||||
ResetAdminPasswordCommand,
|
||||
} from 'src/immich-admin/commands/reset-admin-password.command';
|
||||
import { InfraModule } from 'src/infra/infra.module';
|
||||
|
||||
@Module({
|
||||
imports: [InfraModule, DomainModule],
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { UserService } from '@app/domain';
|
||||
import { Command, CommandRunner } from 'nest-commander';
|
||||
import { CLI_USER } from '../constants';
|
||||
import { UserService } from 'src/domain/user/user.service';
|
||||
import { CLI_USER } from 'src/immich-admin/constants';
|
||||
|
||||
@Command({
|
||||
name: 'list-users',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { SystemConfigService } from '@app/domain';
|
||||
import { Command, CommandRunner } from 'nest-commander';
|
||||
import { SystemConfigService } from 'src/domain/system-config/system-config.service';
|
||||
|
||||
@Command({
|
||||
name: 'enable-oauth-login',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { SystemConfigService } from '@app/domain';
|
||||
import { Command, CommandRunner } from 'nest-commander';
|
||||
import { SystemConfigService } from 'src/domain/system-config/system-config.service';
|
||||
|
||||
@Command({
|
||||
name: 'enable-password-login',
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { UserResponseDto, UserService } from '@app/domain';
|
||||
import { Command, CommandRunner, InquirerService, Question, QuestionSet } from 'nest-commander';
|
||||
import { UserResponseDto } from 'src/domain/user/response-dto/user-response.dto';
|
||||
import { UserService } from 'src/domain/user/user.service';
|
||||
|
||||
@Command({
|
||||
name: 'reset-admin-password',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { AuthDto } from '@app/domain';
|
||||
import { UserEntity } from '@app/infra/entities';
|
||||
import { AuthDto } from 'src/domain/auth/auth.dto';
|
||||
import { UserEntity } from 'src/infra/entities/user.entity';
|
||||
|
||||
export const CLI_USER: AuthDto = {
|
||||
user: {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { LogLevel } from '@app/infra/entities';
|
||||
import { CommandFactory } from 'nest-commander';
|
||||
import { AppModule } from './app.module';
|
||||
import { AppModule } from 'src/immich-admin/app.module';
|
||||
import { LogLevel } from 'src/infra/entities/system-config.entity';
|
||||
|
||||
export async function bootstrap() {
|
||||
process.env.LOG_LEVEL = LogLevel.WARN;
|
||||
|
||||
Reference in New Issue
Block a user