1
0
mirror of https://github.com/immich-app/immich.git synced 2025-08-08 23:07:06 +02:00

refactor: logger service and remove dynamic (#17733)

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
shenlong
2025-06-09 08:31:31 +05:30
committed by GitHub
parent 7b2237b86b
commit 2d05a5482f
13 changed files with 119 additions and 140 deletions

View File

@ -65,8 +65,7 @@ class SyncApiRepository implements ISyncApiRepository {
}
try {
final response =
await client.send(request).timeout(const Duration(seconds: 20));
final response = await client.send(request);
if (response.statusCode != 200) {
final errorBody = await response.stream.bytesToString();
@ -130,8 +129,7 @@ class SyncApiRepository implements ISyncApiRepository {
}
}
// ignore: avoid-dynamic
const _kResponseMap = <SyncEntityType, Function(dynamic)>{
const _kResponseMap = <SyncEntityType, Function(Object)>{
SyncEntityType.userV1: SyncUserV1.fromJson,
SyncEntityType.userDeleteV1: SyncUserDeleteV1.fromJson,
SyncEntityType.partnerV1: SyncPartnerV1.fromJson,