mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-11-25 12:49:51 +01:00
Fix linting errors
This commit is contained in:
parent
16c14bf709
commit
b77920bb4b
1 changed files with 2 additions and 0 deletions
|
@ -406,6 +406,7 @@ func (a *Manager) CreateToken(userID, label string, expires time.Time) (*Token,
|
|||
}, nil
|
||||
}
|
||||
|
||||
// Tokens returns all existing tokens for the user with the given user ID
|
||||
func (a *Manager) Tokens(userID string) ([]*Token, error) {
|
||||
rows, err := a.db.Query(selectTokensQuery, userID)
|
||||
if err != nil {
|
||||
|
@ -425,6 +426,7 @@ func (a *Manager) Tokens(userID string) ([]*Token, error) {
|
|||
return tokens, nil
|
||||
}
|
||||
|
||||
// Token returns a specific token for a user
|
||||
func (a *Manager) Token(userID, token string) (*Token, error) {
|
||||
rows, err := a.db.Query(selectTokenQuery, userID, token)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue