mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(server): correctly identify integers
This commit is contained in:
parent
2d2673c114
commit
b0291b6ad6
27 changed files with 152 additions and 135 deletions
4
mobile/openapi/lib/model/on_this_day_dto.dart
generated
4
mobile/openapi/lib/model/on_this_day_dto.dart
generated
|
|
@ -17,7 +17,7 @@ class OnThisDayDto {
|
|||
});
|
||||
|
||||
/// Minimum value: 1
|
||||
num year;
|
||||
int year;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) => identical(this, other) || other is OnThisDayDto &&
|
||||
|
|
@ -46,7 +46,7 @@ class OnThisDayDto {
|
|||
final json = value.cast<String, dynamic>();
|
||||
|
||||
return OnThisDayDto(
|
||||
year: num.parse('${json[r'year']}'),
|
||||
year: mapValueOfType<int>(json, r'year')!,
|
||||
);
|
||||
}
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue