mirror of
https://github.com/immich-app/immich.git
synced 2025-06-12 21:38:37 +02:00
fix: missing permissions and optional update (#18735)
* fix: missing permissions * fix: test
This commit is contained in:
parent
10181defb1
commit
6f39a706b2
5 changed files with 27 additions and 15 deletions
server/src/dtos
|
@ -15,14 +15,16 @@ export class APIKeyCreateDto {
|
|||
}
|
||||
|
||||
export class APIKeyUpdateDto {
|
||||
@Optional()
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
name!: string;
|
||||
name?: string;
|
||||
|
||||
@Optional()
|
||||
@IsEnum(Permission, { each: true })
|
||||
@ApiProperty({ enum: Permission, enumName: 'Permission', isArray: true })
|
||||
@ArrayMinSize(1)
|
||||
permissions!: Permission[];
|
||||
permissions?: Permission[];
|
||||
}
|
||||
|
||||
export class APIKeyCreateResponseDto {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue