aboutsummaryrefslogtreecommitdiff
path: root/internal/route/api/v1/user/app.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/route/api/v1/user/app.go')
-rw-r--r--internal/route/api/v1/user/app.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/route/api/v1/user/app.go b/internal/route/api/v1/user/app.go
index 99a422cc..98532ae2 100644
--- a/internal/route/api/v1/user/app.go
+++ b/internal/route/api/v1/user/app.go
@@ -30,8 +30,8 @@ func ListAccessTokens(c *context.APIContext) {
func CreateAccessToken(c *context.APIContext, form api.CreateAccessTokenOption) {
t := &db.AccessToken{
- UID: c.User.ID,
- Name: form.Name,
+ UserID: c.User.ID,
+ Name: form.Name,
}
if err := db.NewAccessToken(t); err != nil {
if errors.IsAccessTokenNameAlreadyExist(err) {