Skip to content

Commit

Permalink
fix: too many USER_SETTING_ACCESS_TOKENS in api/v1/user/me
Browse files Browse the repository at this point in the history
  • Loading branch information
whatwewant committed Mar 13, 2024
1 parent 3c998b1 commit 51b093f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/v1/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,11 @@ func (s *APIV1Service) GetCurrentUser(c echo.Context) error {
}
userSettingList := []*UserSetting{}
for _, userSetting := range list {
// @TODO ignore access tokens, too many
if userSetting.Key == "USER_SETTING_ACCESS_TOKENS" {
continue
}

userSettingList = append(userSettingList, convertUserSettingFromStore(userSetting))
}
userMessage := convertUserFromStore(user)
Expand Down

0 comments on commit 51b093f

Please sign in to comment.