File tree Expand file tree Collapse file tree
MangoAPI.BusinessLogic/ApiCommands/Users
MangoAPI.Client/src/app/components/settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,24 +34,6 @@ public async Task<Result<UpdatePersonalInformationResponse>> Handle(
3434 {
3535 var user = await dbContext . Users . AsNoTracking ( )
3636 . Include ( x => x . PersonalInformation )
37- // .Select(user => new User
38- // {
39- // UserId = user.Id,
40- // DisplayName = user.DisplayName,
41- // DisplayNameColour = user.DisplayNameColour,
42- // Address = user.Address,
43- // Birthday = user.Birthday.HasValue
44- // ? user.Birthday.Value.ToString("yyyy-MM-dd", CultureInfo.CurrentCulture)
45- // : null,
46- // Website = user.Website,
47- // Facebook = user.PersonalInformation.Facebook,
48- // Twitter = user.PersonalInformation.Twitter,
49- // Instagram = user.PersonalInformation.Instagram,
50- // LinkedIn = user.PersonalInformation.LinkedIn,
51- // Username = user.Username,
52- // Bio = user.Bio,
53- // PictureUrl = $"{blobServiceSettings.MangoBlobAccess}/{user.ImageFileName}",
54- // })
5537 . FirstOrDefaultAsync ( x => x . Id == request . UserId , cancellationToken ) ;
5638
5739 if ( user == null )
Original file line number Diff line number Diff line change @@ -108,12 +108,8 @@ export class SettingsComponent implements OnInit {
108108
109109 const response = await firstValueFrom < UpdateUserAccountInfoResponse > ( updateUserInfoSub$ ) ;
110110
111- console . log ( JSON . stringify ( response . user ) ) ;
112-
113111 this . currentUser = response . user ;
114112
115- // this.currentUser = { ...this.currentUserForUpdating };
116-
117113 alert ( response . message ) ;
118114 }
119115
@@ -129,8 +125,6 @@ export class SettingsComponent implements OnInit {
129125
130126 const response = await firstValueFrom < UpdatePersonalInformationResponse > ( saveSocialsSub$ ) ;
131127
132- console . log ( JSON . stringify ( response . user ) ) ;
133-
134128 this . currentUser = response . user ;
135129
136130 alert ( response . message ) ;
You can’t perform that action at this time.
0 commit comments