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