Skip to content

Commit 1df3380

Browse files
committed
fix: Seed UserAppSettings during database initialization
This commit adds the necessary logic to seed the `user_app_settings` collection during the database initialization process. This ensures that default user settings are available in the database upon startup.
1 parent a9edf5a commit 1df3380

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/src/services/database_seeding_service.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ class DatabaseSeedingService {
5252
getId: (item) => item.id,
5353
toJson: (item) => item.toJson(),
5454
);
55+
await _seedCollection<UserAppSettings>(
56+
collectionName: 'user_app_settings',
57+
fixtureData: userAppSettingsFixturesData,
58+
getId: (item) => item.id,
59+
toJson: (item) => item.toJson(),
60+
);
61+
5562
await _seedCollection<RemoteConfig>(
5663
collectionName: 'remote_configs',
5764
fixtureData: remoteConfigsFixturesData,

0 commit comments

Comments
 (0)