@@ -49,7 +49,7 @@ class AppDependencies {
4949 late final HtDataRepository <User > userRepository;
5050 late final HtDataRepository <UserAppSettings > userAppSettingsRepository;
5151 late final HtDataRepository <UserContentPreferences >
52- userContentPreferencesRepository;
52+ userContentPreferencesRepository;
5353 late final HtDataRepository <RemoteConfig > remoteConfigRepository;
5454 late final HtEmailRepository emailRepository;
5555
@@ -134,12 +134,12 @@ class AppDependencies {
134134 );
135135 final userContentPreferencesClient =
136136 HtDataMongodb <UserContentPreferences >(
137- connectionManager: _mongoDbConnectionManager,
138- modelName: 'user_content_preferences' ,
139- fromJson: UserContentPreferences .fromJson,
140- toJson: (item) => item.toJson (),
141- logger: Logger ('HtDataMongodb<UserContentPreferences>' ),
142- );
137+ connectionManager: _mongoDbConnectionManager,
138+ modelName: 'user_content_preferences' ,
139+ fromJson: UserContentPreferences .fromJson,
140+ toJson: (item) => item.toJson (),
141+ logger: Logger ('HtDataMongodb<UserContentPreferences>' ),
142+ );
143143 final remoteConfigClient = HtDataMongodb <RemoteConfig >(
144144 connectionManager: _mongoDbConnectionManager,
145145 modelName: 'remote_configs' ,
@@ -154,12 +154,13 @@ class AppDependencies {
154154 sourceRepository = HtDataRepository (dataClient: sourceClient);
155155 countryRepository = HtDataRepository (dataClient: countryClient);
156156 userRepository = HtDataRepository (dataClient: userClient);
157- userAppSettingsRepository =
158- HtDataRepository (dataClient: userAppSettingsClient);
159- userContentPreferencesRepository =
160- HtDataRepository (dataClient: userContentPreferencesClient);
161- remoteConfigRepository =
162- HtDataRepository (dataClient: remoteConfigClient);
157+ userAppSettingsRepository = HtDataRepository (
158+ dataClient: userAppSettingsClient,
159+ );
160+ userContentPreferencesRepository = HtDataRepository (
161+ dataClient: userContentPreferencesClient,
162+ );
163+ remoteConfigRepository = HtDataRepository (dataClient: remoteConfigClient);
163164
164165 final emailClient = HtEmailInMemoryClient (
165166 logger: Logger ('HtEmailInMemoryClient' ),
@@ -176,8 +177,7 @@ class AppDependencies {
176177 uuidGenerator: const Uuid (),
177178 log: Logger ('JwtAuthTokenService' ),
178179 );
179- verificationCodeStorageService =
180- InMemoryVerificationCodeStorageService ();
180+ verificationCodeStorageService = InMemoryVerificationCodeStorageService ();
181181 permissionService = const PermissionService ();
182182 authService = AuthService (
183183 userRepository: userRepository,
@@ -219,4 +219,4 @@ class AppDependencies {
219219 _isInitialized = false ;
220220 _log.info ('Application dependencies disposed.' );
221221 }
222- }
222+ }
0 commit comments