summaryrefslogtreecommitdiffstats
path: root/models/token.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/token.go')
-rw-r--r--models/token.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/token.go b/models/token.go
index d171827768..a95c453352 100644
--- a/models/token.go
+++ b/models/token.go
@@ -62,8 +62,8 @@ func ListAccessTokens(uid int64) ([]*AccessToken, error) {
return tokens, nil
}
-// DeleteAccessTokenById deletes access token by given ID.
-func DeleteAccessTokenById(id int64) error {
+// DeleteAccessTokenByID deletes access token by given ID.
+func DeleteAccessTokenByID(id int64) error {
_, err := x.Id(id).Delete(new(AccessToken))
return err
}