mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 07:16:38 +00:00
fix delete token parameter lookup
This commit is contained in:
@@ -228,7 +228,7 @@ func (am *DefaultAccountManager) DeletePAT(accountID string, userID string, toke
|
||||
return status.Errorf(status.NotFound, "user not found")
|
||||
}
|
||||
|
||||
pat := user.PATs["tokenID"]
|
||||
pat := user.PATs[tokenID]
|
||||
if pat == nil {
|
||||
return status.Errorf(status.NotFound, "PAT not found")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user