mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00: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
|
|
@ -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