feat: publish sanitized custom.97 source
This commit is contained in:
1022 files changed
+69903
-19207
No files matched your search
@@ -2,7 +2,6 @@ package model
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/QuantumNous/new-api/common"
|
||||
"github.com/shopspring/decimal"
|
||||
@@ -80,7 +79,7 @@ func AdjustUserQuota(userID, operatorRole int, mode string, value int) (*UserQuo
|
||||
delta := int64(adjustment.After) - int64(adjustment.Before)
|
||||
if delta != 0 {
|
||||
if err := cacheIncrUserQuota(userID, delta); err != nil {
|
||||
common.SysError(fmt.Sprintf("failed to sync manual quota adjustment for user %d: %s", userID, err))
|
||||
common.SysError(common.LogText("failed to sync manual quota adjustment for user %d: %s", userID, err))
|
||||
}
|
||||
}
|
||||
return &adjustment, nil
|
||||
|
||||
Reference in new issue
Block a user