mirror of
https://github.com/immich-app/immich.git
synced 2025-11-10 14:22:35 +09:00
chore(server): openapi generation (#9585)
This commit is contained in:
6
mobile/openapi/lib/api/duplicate_api.dart
generated
6
mobile/openapi/lib/api/duplicate_api.dart
generated
@@ -42,7 +42,7 @@ class DuplicateApi {
|
||||
);
|
||||
}
|
||||
|
||||
Future<List<AssetResponseDto>?> getAssetDuplicates() async {
|
||||
Future<List<DuplicateResponseDto>?> getAssetDuplicates() async {
|
||||
final response = await getAssetDuplicatesWithHttpInfo();
|
||||
if (response.statusCode >= HttpStatus.badRequest) {
|
||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
||||
@@ -52,8 +52,8 @@ class DuplicateApi {
|
||||
// FormatException when trying to decode an empty string.
|
||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
||||
final responseBody = await _decodeBodyBytes(response);
|
||||
return (await apiClient.deserializeAsync(responseBody, 'List<AssetResponseDto>') as List)
|
||||
.cast<AssetResponseDto>()
|
||||
return (await apiClient.deserializeAsync(responseBody, 'List<DuplicateResponseDto>') as List)
|
||||
.cast<DuplicateResponseDto>()
|
||||
.toList(growable: false);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user