mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-09 15:43:41 +08:00
try to fix email
This commit is contained in:
@@ -147,7 +147,7 @@ func relayImageHelper(c *gin.Context, relayMode int) *OpenAIErrorWithStatusCode
|
||||
var textResponse ImageResponse
|
||||
defer func(ctx context.Context) {
|
||||
if consumeQuota {
|
||||
err := model.PostConsumeTokenQuota(tokenId, userId, quota, 0)
|
||||
err := model.PostConsumeTokenQuota(tokenId, userId, quota, 0, true)
|
||||
if err != nil {
|
||||
common.SysError("error consuming token remain quota: " + err.Error())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user