mirror of
https://github.com/KevinMidboe/immich.git
synced 2026-02-11 18:59:23 +00:00
chore(server): organize imports (#2779)
* feat: lint rule for organize imports * chore: organize imports
This commit is contained in:
@@ -1,3 +1,18 @@
|
||||
import {
|
||||
AlbumResponseDto,
|
||||
AssetResponseDto,
|
||||
AudioStreamInfo,
|
||||
AuthUserDto,
|
||||
ExifResponseDto,
|
||||
mapUser,
|
||||
QueueName,
|
||||
SearchResult,
|
||||
SharedLinkResponseDto,
|
||||
TagResponseDto,
|
||||
VideoFormat,
|
||||
VideoInfo,
|
||||
VideoStreamInfo,
|
||||
} from '@app/domain';
|
||||
import {
|
||||
AlbumEntity,
|
||||
APIKeyEntity,
|
||||
@@ -16,21 +31,6 @@ import {
|
||||
UserEntity,
|
||||
UserTokenEntity,
|
||||
} from '@app/infra/entities';
|
||||
import {
|
||||
AlbumResponseDto,
|
||||
AssetResponseDto,
|
||||
AudioStreamInfo,
|
||||
AuthUserDto,
|
||||
ExifResponseDto,
|
||||
mapUser,
|
||||
QueueName,
|
||||
SearchResult,
|
||||
SharedLinkResponseDto,
|
||||
TagResponseDto,
|
||||
VideoFormat,
|
||||
VideoInfo,
|
||||
VideoStreamInfo,
|
||||
} from '@app/domain';
|
||||
|
||||
const today = new Date();
|
||||
const tomorrow = new Date();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export * from './repositories';
|
||||
export * from './fixtures';
|
||||
export * from './repositories';
|
||||
|
||||
export async function asyncTick(steps: number) {
|
||||
for (let i = 0; i < steps; i++) {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { AuthUserDto } from '@app/immich/decorators/auth-user.decorator';
|
||||
import { AuthGuard } from '@app/immich/middlewares/auth.guard';
|
||||
import { CanActivate, ExecutionContext } from '@nestjs/common';
|
||||
import { TestingModuleBuilder } from '@nestjs/testing';
|
||||
import { DataSource } from 'typeorm';
|
||||
import { AuthUserDto } from '@app/immich/decorators/auth-user.decorator';
|
||||
import { AuthGuard } from '@app/immich/middlewares/auth.guard';
|
||||
|
||||
type CustomAuthCallback = () => AuthUserDto;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user