add function comments, implement account mock functions and added error handling in tests

This commit is contained in:
Pascal Fischer
2023-03-20 16:38:17 +01:00
parent e30def175b
commit 41a47be379
4 changed files with 29 additions and 2 deletions

View File

@@ -214,6 +214,7 @@ func (am *DefaultAccountManager) AddPATToUser(accountID string, userID string, p
return err
}
// DeletePAT deletes a specific PAT from a user
func (am *DefaultAccountManager) DeletePAT(accountID string, userID string, tokenID string) error {
unlock := am.Store.AcquireAccountLock(accountID)
defer unlock()