mirror of
https://github.com/immich-app/immich.git
synced 2026-06-17 21:04:51 +08:00
Some checks are pending
CodeQL / Analyze (javascript) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
Docker / Build and Push (., cpu, server/Dockerfile, immich-server, linux/amd64,linux/arm64) (push) Waiting to run
Docker / Build and Push (machine-learning, armnn, machine-learning/Dockerfile, immich-machine-learning, linux/arm64, -armnn) (push) Waiting to run
Docker / Build and Push (machine-learning, cpu, machine-learning/Dockerfile, immich-machine-learning, linux/amd64,linux/arm64) (push) Waiting to run
Docker / Build and Push (machine-learning, cuda, machine-learning/Dockerfile, immich-machine-learning, linux/amd64, -cuda) (push) Waiting to run
Docker / Build and Push (machine-learning, openvino, machine-learning/Dockerfile, immich-machine-learning, linux/amd64, -openvino) (push) Waiting to run
Static Code Analysis / Run Dart Code Analysis (push) Waiting to run
Test / Server (push) Waiting to run
Test / CLI (push) Waiting to run
Test / CLI (Windows) (push) Waiting to run
Test / Web (push) Waiting to run
Test / End-to-End Tests (push) Waiting to run
Test / Mobile (push) Waiting to run
Test / Machine Learning (push) Waiting to run
Test / ShellCheck (push) Waiting to run
Test / OpenAPI Clients (push) Waiting to run
Test / TypeORM Checks (push) Waiting to run
* chore(mobile): patch download > includeEmbeddedVideos user preferences * correct patch
18 lines
450 B
Dart
18 lines
450 B
Dart
import 'package:openapi/api.dart';
|
|
|
|
dynamic upgradeDto(dynamic value, String targetType) {
|
|
switch (targetType) {
|
|
case 'UserPreferencesResponseDto':
|
|
if (value is Map) {
|
|
if (value['rating'] == null) {
|
|
value['rating'] = RatingResponse().toJson();
|
|
}
|
|
|
|
if (value['download']['includeEmbeddedVideos'] == null) {
|
|
value['download']['includeEmbeddedVideos'] = false;
|
|
}
|
|
}
|
|
break;
|
|
}
|
|
}
|