summaryrefslogtreecommitdiffhomepage
path: root/packages/console/core/script/lookup-user.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/console/core/script/lookup-user.ts')
-rw-r--r--packages/console/core/script/lookup-user.ts10
1 files changed, 2 insertions, 8 deletions
diff --git a/packages/console/core/script/lookup-user.ts b/packages/console/core/script/lookup-user.ts
index 6367fd89a..0dfda2411 100644
--- a/packages/console/core/script/lookup-user.ts
+++ b/packages/console/core/script/lookup-user.ts
@@ -1,13 +1,7 @@
import { Database, and, eq, sql } from "../src/drizzle/index.js"
import { AuthTable } from "../src/schema/auth.sql.js"
import { UserTable } from "../src/schema/user.sql.js"
-import {
- BillingTable,
- PaymentTable,
- SubscriptionTable,
- SubscriptionPlan,
- UsageTable,
-} from "../src/schema/billing.sql.js"
+import { BillingTable, PaymentTable, SubscriptionTable, BlackPlans, UsageTable } from "../src/schema/billing.sql.js"
import { WorkspaceTable } from "../src/schema/workspace.sql.js"
import { BlackData } from "../src/black.js"
import { centsToMicroCents } from "../src/util/price.js"
@@ -235,7 +229,7 @@ function formatRetryTime(seconds: number) {
function getSubscriptionStatus(row: {
subscription: {
- plan: (typeof SubscriptionPlan)[number]
+ plan: (typeof BlackPlans)[number]
} | null
timeSubscriptionCreated: Date | null
fixedUsage: number | null