mirror of
https://github.com/immich-app/immich.git
synced 2025-11-19 01:52:39 +09: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:
@@ -17,7 +17,7 @@ class SyncUserMetadataDeleteV1 {
|
||||
required this.userId,
|
||||
});
|
||||
|
||||
String key;
|
||||
UserMetadataKey key;
|
||||
|
||||
String userId;
|
||||
|
||||
@@ -51,7 +51,7 @@ class SyncUserMetadataDeleteV1 {
|
||||
final json = value.cast<String, dynamic>();
|
||||
|
||||
return SyncUserMetadataDeleteV1(
|
||||
key: mapValueOfType<String>(json, r'key')!,
|
||||
key: UserMetadataKey.fromJson(json[r'key'])!,
|
||||
userId: mapValueOfType<String>(json, r'userId')!,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user