Skip to content

Commit

Permalink
NOISSUE - Fix users update functionality (#2515)
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Gateru <[email protected]>
  • Loading branch information
felixgateru authored Nov 11, 2024
1 parent 3a02788 commit cd94541
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions users/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ func (svc service) Update(ctx context.Context, session authn.Session, usr User)
FirstName: usr.FirstName,
LastName: usr.LastName,
Metadata: usr.Metadata,
Role: AllRole,
UpdatedAt: time.Now(),
UpdatedBy: session.UserID,
}
Expand All @@ -227,6 +228,7 @@ func (svc service) UpdateTags(ctx context.Context, session authn.Session, usr Us
user := User{
ID: usr.ID,
Tags: usr.Tags,
Role: AllRole,
UpdatedAt: time.Now(),
UpdatedBy: session.UserID,
}
Expand All @@ -248,6 +250,7 @@ func (svc service) UpdateProfilePicture(ctx context.Context, session authn.Sessi
user := User{
ID: usr.ID,
ProfilePicture: usr.ProfilePicture,
Role: AllRole,
UpdatedAt: time.Now(),
UpdatedBy: session.UserID,
}
Expand All @@ -270,6 +273,7 @@ func (svc service) UpdateEmail(ctx context.Context, session authn.Session, userI
user := User{
ID: userID,
Email: email,
Role: AllRole,
UpdatedAt: time.Now(),
UpdatedBy: session.UserID,
}
Expand Down

0 comments on commit cd94541

Please sign in to comment.