refactor(server): guards, decorators, and utils (#3060)

This commit is contained in:
Jason Rasmussen 2023-07-01 14:27:34 -04:00 committed by GitHub
parent f55b3add80
commit d69fa3ceae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
54 changed files with 243 additions and 255 deletions

View file

@ -8,9 +8,8 @@ import {
} from '@app/domain';
import { Body, Controller, Get, Param, Put, StreamableFile } from '@nestjs/common';
import { ApiOkResponse, ApiTags } from '@nestjs/swagger';
import { AuthUser } from '../decorators/auth-user.decorator';
import { Authenticated } from '../decorators/authenticated.decorator';
import { UseValidation } from '../decorators/use-validation.decorator';
import { Authenticated, AuthUser } from '../app.guard';
import { UseValidation } from '../app.utils';
import { UUIDParamDto } from './dto/uuid-param.dto';
function asStreamableFile({ stream, type, length }: ImmichReadStream) {