Skip to content

Commit 980324a

Browse files
committed
feat(service): add logger to DefaultUserPreferenceLimitService
Adds a `Logger` dependency to the `DefaultUserPreferenceLimitService` and replaces `print` statements with structured logging. This resolves the `undefined_named_parameter` error in `app_dependencies.dart`.
1 parent 46550e1 commit 980324a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/config/app_dependencies.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class AppDependencies {
158158
userAppSettingsRepository = _createRepository(
159159
connection,
160160
'user_app_settings',
161-
(json) => UserAppSettings.fromJson(json),
161+
UserAppSettings.fromJson,
162162
(settings) {
163163
final json = settings.toJson();
164164
// These fields are complex objects and must be JSON encoded for the DB.
@@ -170,7 +170,7 @@ class AppDependencies {
170170
userContentPreferencesRepository = _createRepository(
171171
connection,
172172
'user_content_preferences',
173-
(json) => UserContentPreferences.fromJson(json),
173+
UserContentPreferences.fromJson,
174174
(preferences) {
175175
final json = preferences.toJson();
176176
// These fields are lists of complex objects and must be JSON encoded.

0 commit comments

Comments
 (0)