From 7c599e57cb6eba82340ef4934af404dc82b16857 Mon Sep 17 00:00:00 2001 From: cp-mayank-v Date: Thu, 12 Sep 2024 14:36:52 +0530 Subject: [PATCH] Minor changes --- data/lib/api/user/user_models.dart | 3 --- data/lib/service/user/user_service.dart | 2 -- .../ui/flow/settings/edit_profile/edit_profile_view_model.dart | 2 -- 3 files changed, 7 deletions(-) diff --git a/data/lib/api/user/user_models.dart b/data/lib/api/user/user_models.dart index 711c896d..f1629db0 100644 --- a/data/lib/api/user/user_models.dart +++ b/data/lib/api/user/user_models.dart @@ -27,8 +27,6 @@ class UserModel with _$UserModel { UserGender? gender, DateTime? created_at, DateTime? updated_at, - @TimeStampJsonConverter() DateTime? created_time, - @TimeStampJsonConverter() DateTime? updated_time, PlayerRole? player_role, BattingStyle? batting_style, BowlingStyle? bowling_style, @@ -67,7 +65,6 @@ class ApiSession with _$ApiSession { required int app_version, required String os_version, DateTime? created_at, - @TimeStampJsonConverter() DateTime? created_time, @Default(true) bool is_active, }) = _ApiSession; diff --git a/data/lib/service/user/user_service.dart b/data/lib/service/user/user_service.dart index 2f952a75..d4695693 100644 --- a/data/lib/service/user/user_service.dart +++ b/data/lib/service/user/user_service.dart @@ -65,7 +65,6 @@ class UserService { app_version: await deviceService.appVersion, os_version: await deviceService.osVersion, created_at: DateTime.now(), - created_time: DateTime.now(), ); await sessionDocRef.set(session); @@ -105,7 +104,6 @@ class UserService { id: userId, phone: phone, created_at: DateTime.now(), - created_time: DateTime.now(), ); await _userRef.doc(userId).set(user); return user; diff --git a/khelo/lib/ui/flow/settings/edit_profile/edit_profile_view_model.dart b/khelo/lib/ui/flow/settings/edit_profile/edit_profile_view_model.dart index d0a28d6d..049e9cc3 100644 --- a/khelo/lib/ui/flow/settings/edit_profile/edit_profile_view_model.dart +++ b/khelo/lib/ui/flow/settings/edit_profile/edit_profile_view_model.dart @@ -141,8 +141,6 @@ class EditProfileViewNotifier extends StateNotifier { dob: state.dob, created_at: state.currentUser?.created_at ?? DateTime.now(), updated_at: DateTime.now(), - created_time: state.currentUser?.created_at ?? DateTime.now(), - updated_time: DateTime.now(), ); await userService.updateUser(user);