Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Beniamiiin committed Nov 30, 2023
1 parent 8070b73 commit 15c6ba0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/tg_bot/commands/authorization_bot/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ func (c *startCommand) Handle(text, discordID string, user *models.User, chatID
return []tgbotapi.Chattable{extension.DefaultErrorMessage(chatID)}
}

user.Role = models.UserRoleMember
if user.Role == models.UserRoleGuest {
user.Role = models.UserRoleMember
}

_, err = c.userRepository.Update(user)
if err != nil {
Expand Down

0 comments on commit 15c6ba0

Please sign in to comment.