diff options
Diffstat (limited to 'models/token.go')
-rw-r--r-- | models/token.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/token.go b/models/token.go index 5053214b6e..c282924825 100644 --- a/models/token.go +++ b/models/token.go @@ -68,13 +68,13 @@ func ListAccessTokens(uid int64) ([]*AccessToken, error) { // UpdateAccessToken updates information of access token. func UpdateAccessToken(t *AccessToken) error { - _, err := x.Id(t.ID).AllCols().Update(t) + _, err := x.ID(t.ID).AllCols().Update(t) return err } // DeleteAccessTokenByID deletes access token by given ID. func DeleteAccessTokenByID(id, userID int64) error { - cnt, err := x.Id(id).Delete(&AccessToken{ + cnt, err := x.ID(id).Delete(&AccessToken{ UID: userID, }) if err != nil { |