Skip to content

Commit

Permalink
pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
amalshaji committed Dec 26, 2023
1 parent 4134ffd commit 2c3315f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/server/admin/service/team.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ func (s *Service) sendAddMemberNotification(ctx context.Context, user *db.User,
return nil
}

func (s *Service) AddMember(ctx context.Context, addMemberInput AddMemberInput, addedToTeamId, addByTeamUserId int64) (*db.User, error) {
func (s *Service) AddMember(
ctx context.Context,
addMemberInput AddMemberInput,
addedToTeamId,
addByTeamUserId int64,
) (*db.User, error) {
user, err := s.db.Queries.GetUserByEmail(ctx, addMemberInput.Email)
if err != nil {
if errors.Is(err, sql.ErrNoRows) {
Expand Down

0 comments on commit 2c3315f

Please sign in to comment.