diff --git a/packages/console/app/src/context/auth.ts b/packages/console/app/src/context/auth.ts index 25a28321f3..864b488f51 100644 --- a/packages/console/app/src/context/auth.ts +++ b/packages/console/app/src/context/auth.ts @@ -142,11 +142,7 @@ async function requireBlackAccount(account: { id: string; email: string }): Prom .from(UserTable) .innerJoin(BillingTable, eq(BillingTable.workspaceID, UserTable.workspaceID)) .where( - and( - eq(UserTable.accountID, account.id), - isNull(UserTable.timeDeleted), - isNotNull(BillingTable.subscriptionID), - ), + and(eq(UserTable.accountID, account.id), isNull(UserTable.timeDeleted), isNotNull(BillingTable.subscriptionID)), ) .limit(1) .then((rows) => rows[0]),