mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +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
8
mobile/openapi/lib/api/deprecated_api.dart
generated
8
mobile/openapi/lib/api/deprecated_api.dart
generated
|
|
@ -75,8 +75,8 @@ class DeprecatedApi {
|
|||
///
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [num] count:
|
||||
Future<Response> getRandomWithHttpInfo({ num? count, }) async {
|
||||
/// * [int] count:
|
||||
Future<Response> getRandomWithHttpInfo({ int? count, }) async {
|
||||
// ignore: prefer_const_declarations
|
||||
final apiPath = r'/assets/random';
|
||||
|
||||
|
|
@ -109,8 +109,8 @@ class DeprecatedApi {
|
|||
///
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [num] count:
|
||||
Future<List<AssetResponseDto>?> getRandom({ num? count, }) async {
|
||||
/// * [int] count:
|
||||
Future<List<AssetResponseDto>?> getRandom({ int? count, }) async {
|
||||
final response = await getRandomWithHttpInfo( count: count, );
|
||||
if (response.statusCode >= HttpStatus.badRequest) {
|
||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue