fix: the initial quota for new token now calculated correctly (#51)
This commit is contained in:
parent
6e1ef75009
commit
e6af636fa0
@ -138,9 +138,7 @@ func AddToken(c *gin.Context) {
|
|||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if quota > 0 {
|
cleanToken.RemainQuota = quota
|
||||||
cleanToken.RemainQuota = quota
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
err = cleanToken.Insert()
|
err = cleanToken.Insert()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user