try to fix email

This commit is contained in:
CaIon
2023-11-15 18:27:13 +08:00
parent b4bd9a19d9
commit 16ad764f9b
5 changed files with 21 additions and 15 deletions

View File

@@ -359,7 +359,7 @@ func relayMidjourneySubmit(c *gin.Context, relayMode int) *MidjourneyResponse {
defer func(ctx context.Context) {
if consumeQuota {
err := model.PostConsumeTokenQuota(tokenId, userQuota, quota, 0)
err := model.PostConsumeTokenQuota(tokenId, userQuota, quota, 0, true)
if err != nil {
common.SysError("error consuming token remain quota: " + err.Error())
}