Skip to content

Commit

Permalink
fix email bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Calcium-Ion committed Nov 21, 2023
1 parent 57d0fc3 commit fa45f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/relay-image.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, true)
err := model.PostConsumeTokenQuota(tokenId, userQuota, quota, 0, true)
if err != nil {
common.SysError("error consuming token remain quota: " + err.Error())
}
Expand Down

0 comments on commit fa45f3b

Please sign in to comment.