mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
refactor(server): use cascades for keys and tokens (#2544)
This commit is contained in:
parent
e2bd7e1e08
commit
50a792a81a
19 changed files with 100 additions and 126 deletions
14
server/libs/domain/src/api-key/api-key.dto.ts
Normal file
14
server/libs/domain/src/api-key/api-key.dto.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { IsNotEmpty, IsOptional, IsString } from 'class-validator';
|
||||
|
||||
export class APIKeyCreateDto {
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
@IsOptional()
|
||||
name?: string;
|
||||
}
|
||||
|
||||
export class APIKeyUpdateDto {
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
name!: string;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue