Skip to content

Commit b016f11

Browse files
committed
fix(database): correct user status initialization and language structure
- Change feedActionStatus to feedDecoratorStatus and update related types - Replace language code with Language object initialization
1 parent 589a64e commit b016f11

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

lib/src/services/database_seeding_service.dart

Lines changed: 12 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,15 @@ class DatabaseSeedingService {
258258
textScaleFactor: AppTextScaleFactor.medium,
259259
fontWeight: AppFontWeight.regular,
260260
),
261-
language: 'en',
261+
language: Language(
262+
id: '6633b7ac1892f06e6914d0b3',
263+
code: 'en',
264+
name: 'English',
265+
nativeName: 'English',
266+
createdAt: DateTime.now(),
267+
updatedAt: DateTime.now(),
268+
status: ContentStatus.active,
269+
),,
262270
feedPreferences: const FeedDisplayPreferences(
263271
headlineDensity: HeadlineDensity.standard,
264272
headlineImageStyle: HeadlineImageStyle.smallThumbnail,

0 commit comments

Comments
 (0)