Fix request return
All checks were successful
Build Backend (NixCN CMS) TeamCity build finished
Build Frontend (NixCN CMS) TeamCity build finished

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2026-01-02 13:34:13 +08:00
parent 4796653896
commit 743f8373b0
2 changed files with 2 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ func Refresh(c *gin.Context) {
refresh, err := JwtTool.RenewRefreshToken(req.RefreshToken)
if err != nil {
c.JSON(500, gin.H{"statis": "error renew refresh token"})
return
}
c.JSON(200, gin.H{

View File

@@ -17,6 +17,7 @@ func Info(c *gin.Context) {
userId, err := uuid.Parse(userIdOrig.(string))
if err != nil {
c.JSON(500, gin.H{"status": "failed to parse uuid"})
return
}
// Get user from database