Skip to content

Commit

Permalink
Merge pull request #98 from canopas/Mayank/minor-changes
Browse files Browse the repository at this point in the history
Minor changes
  • Loading branch information
cp-mayank authored Sep 12, 2024
2 parents da47659 + 7c599e5 commit 45e5639
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions data/lib/api/user/user_models.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;

Expand Down
2 changes: 0 additions & 2 deletions data/lib/service/user/user_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,6 @@ class EditProfileViewNotifier extends StateNotifier<EditProfileState> {
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);
Expand Down

0 comments on commit 45e5639

Please sign in to comment.