Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions controllers/account/api/v1/debt_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func (d *DebtValidate) checkOption(
code.MessageFormat,
code.InsufficientBalance,
fmt.Sprintf(
"account balance less than 0, now account is %.2f¥. Please recharge the user %s.",
"(cache) account balance less than 0, now account is %.2f¥. Please recharge the user %s.",
GetAccountDebtBalance(cachedAccount),
user,
),
Expand Down Expand Up @@ -235,7 +235,7 @@ func (d *DebtValidate) checkOption(
}
} else {
// Cache miss, query database
userUID, err := d.AccountV2.GetUserUID(&pkgtype.UserQueryOpts{Owner: user})
userUID, err := d.AccountV2.GetUserUID(&pkgtype.UserQueryOpts{Owner: user, WithOutCache: true})
if err != nil {
logger.Error(err, "get user error", "user", user)
return admission.ValidationResponse(true, err.Error())
Expand Down
2 changes: 1 addition & 1 deletion controllers/pkg/database/cockroach/accountv2.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ func (c *Cockroach) GetUserUID(ops *types.UserQueryOpts) (uid uuid.UUID, err err
}
// data in the cache owner is preferred
if ops.Owner != "" {
uid, err = c.getUserUIDByOwnerWithCache(ops.Owner)
uid, err = c.getUserUIDByOwner(ops.Owner)
} else {
uid, err = c.getUserUIDByID(ops.ID)
}
Expand Down
Loading