This commit is contained in:
Sakurasan
2025-04-22 02:16:28 +08:00
parent 6d1d0f3b6b
commit 8d34f8d6fe

View File

@@ -90,7 +90,7 @@ func (a Api) ResetToken(c *gin.Context) {
dto.Fail(c, http.StatusNotFound, "token not found") dto.Fail(c, http.StatusNotFound, "token not found")
return return
} }
token.UsedQuota = utils.ToPtr(int64(0)) token.UsedQuota = utils.ToPtr(float64(0))
err = a.tokenService.UpdateToken(c, token) err = a.tokenService.UpdateToken(c, token)
if err != nil { if err != nil {