Skip to content

Commit

Permalink
Fix PAT copy for GetUserByTokenID in SQLite store (#1312)
Browse files Browse the repository at this point in the history
  • Loading branch information
surik authored Nov 15, 2023
1 parent 70c7543 commit fb42fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion management/server/sqlite_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func (s *SqliteStore) GetUserByTokenID(tokenID string) (*User, error) {

user.PATs = make(map[string]*PersonalAccessToken, len(user.PATsG))
for _, pat := range user.PATsG {
user.PATs[pat.ID] = &pat
user.PATs[pat.ID] = pat.Copy()
}

return &user, nil
Expand Down

0 comments on commit fb42fed

Please sign in to comment.