diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-04-11 01:25:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-11 01:25:19 +0800 |
commit | 62dda96159055ff9d485078f257445b964eb5220 (patch) | |
tree | a8bd161dc92c368bee0e6b58797e23278565cd8b /internal/route/lfs/route.go | |
parent | 5753d4cb87388c247e91eaf3ce641d309a45e760 (diff) |
access_token: migrate to GORM and add tests (#6086)
* access_token: migrate to GORM
* Add tests
* Fix tests
* Fix test clock
Diffstat (limited to 'internal/route/lfs/route.go')
-rw-r--r-- | internal/route/lfs/route.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/internal/route/lfs/route.go b/internal/route/lfs/route.go index 16478803..a5c25303 100644 --- a/internal/route/lfs/route.go +++ b/internal/route/lfs/route.go @@ -7,7 +7,6 @@ package lfs import ( "net/http" "strings" - "time" "gopkg.in/macaron.v1" log "unknwon.dev/clog/v2" @@ -83,7 +82,6 @@ func authenticate() macaron.Handler { } return } - token.Updated = time.Now() if err = db.AccessTokens.Save(token); err != nil { log.Error("Failed to update access token: %v", err) } |