up
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user