From 8cc7f983e16ab9b6da0e826bea6b130cbe91dda1 Mon Sep 17 00:00:00 2001 From: ckt1031 <65409152+ckt1031@users.noreply.github.com> Date: Fri, 14 Jul 2023 23:53:23 +0800 Subject: [PATCH] fix: model creation issue --- controller/token.go | 1 + 1 file changed, 1 insertion(+) diff --git a/controller/token.go b/controller/token.go index c71fc288..8fa92f33 100644 --- a/controller/token.go +++ b/controller/token.go @@ -126,6 +126,7 @@ func AddToken(c *gin.Context) { ExpiredTime: token.ExpiredTime, RemainQuota: token.RemainQuota, UnlimitedQuota: token.UnlimitedQuota, + Models: token.Models, } err = cleanToken.Insert() if err != nil {