Skip to content

Commit adde995

Browse files
committed
fix(database): correct user fixture properties
- Change feedActionStatus to feedDecoratorStatus and update related types - Update language property to use languagesFixturesData instead of string
1 parent 56feee3 commit adde995

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/src/services/database_seeding_service.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ class DatabaseSeedingService {
216216
appRole: AppUserRole.standardUser,
217217
dashboardRole: DashboardUserRole.admin,
218218
createdAt: DateTime.now(),
219-
feedActionStatus: Map.fromEntries(
220-
FeedActionType.values.map(
219+
feedDecoratorStatus: Map.fromEntries(
220+
FeedDecoratorType.values.map(
221221
(type) =>
222-
MapEntry(type, const UserFeedActionStatus(isCompleted: false)),
222+
MapEntry(type, const UserFeedDecoratorStatus(isCompleted: false)),
223223
),
224224
),
225225
);
@@ -258,7 +258,7 @@ class DatabaseSeedingService {
258258
textScaleFactor: AppTextScaleFactor.medium,
259259
fontWeight: AppFontWeight.regular,
260260
),
261-
language: 'en',
261+
language: languagesFixturesData.firstWhere((l) => l.code == 'en'),
262262
feedPreferences: const FeedDisplayPreferences(
263263
headlineDensity: HeadlineDensity.standard,
264264
headlineImageStyle: HeadlineImageStyle.smallThumbnail,

0 commit comments

Comments
 (0)