fix(server): correctly identify integers

This commit is contained in:
Jason Rasmussen 2025-09-10 22:27:55 -04:00
parent 2d2673c114
commit b0291b6ad6
No known key found for this signature in database
GPG key ID: 75AD31BF84C94773
27 changed files with 152 additions and 135 deletions

View file

@ -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;