mirror of
https://fastgit.cc/https://github.com/anomalyco/opencode
synced 2026-04-20 21:00:29 +08:00
chore: generate
This commit is contained in:
@@ -762,7 +762,8 @@ export async function handler(
|
|||||||
const billing = authInfo.billing
|
const billing = authInfo.billing
|
||||||
const billingUrl = `https://opencode.ai/workspace/${authInfo.workspaceID}/billing`
|
const billingUrl = `https://opencode.ai/workspace/${authInfo.workspaceID}/billing`
|
||||||
const membersUrl = `https://opencode.ai/workspace/${authInfo.workspaceID}/members`
|
const membersUrl = `https://opencode.ai/workspace/${authInfo.workspaceID}/members`
|
||||||
if (!billing.paymentMethodID && billing.balance <= 0) throw new CreditsError(t("zen.api.error.noPaymentMethod", { billingUrl }))
|
if (!billing.paymentMethodID && billing.balance <= 0)
|
||||||
|
throw new CreditsError(t("zen.api.error.noPaymentMethod", { billingUrl }))
|
||||||
if (billing.balance <= 0) throw new CreditsError(t("zen.api.error.insufficientBalance", { billingUrl }))
|
if (billing.balance <= 0) throw new CreditsError(t("zen.api.error.insufficientBalance", { billingUrl }))
|
||||||
|
|
||||||
const now = new Date()
|
const now = new Date()
|
||||||
|
|||||||
Reference in New Issue
Block a user