fix delete token parameter lookup

This commit is contained in:
Pascal Fischer 2023-03-27 15:19:19 +02:00
parent de8608f99f
commit 9e74f30d2f

View File

@ -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")
}