mirror of
https://github.com/immich-app/immich.git
synced 2026-03-25 11:08:56 +03:00
fix(server): use UserMetadataKey enum instead of string (#20209)
* fix(server): use UserMetadataKey enum instead of string * fix: mobile
This commit is contained in:
@@ -301,14 +301,16 @@ export class SyncAssetFaceDeleteV1 {
|
||||
@ExtraModel()
|
||||
export class SyncUserMetadataV1 {
|
||||
userId!: string;
|
||||
key!: string;
|
||||
@ValidateEnum({ enum: UserMetadataKey, name: 'UserMetadataKey' })
|
||||
key!: UserMetadataKey;
|
||||
value!: UserMetadata[UserMetadataKey];
|
||||
}
|
||||
|
||||
@ExtraModel()
|
||||
export class SyncUserMetadataDeleteV1 {
|
||||
userId!: string;
|
||||
key!: string;
|
||||
@ValidateEnum({ enum: UserMetadataKey, name: 'UserMetadataKey' })
|
||||
key!: UserMetadataKey;
|
||||
}
|
||||
|
||||
@ExtraModel()
|
||||
|
||||
Reference in New Issue
Block a user