diff --git a/app/api/account/api-key/route.ts b/app/api/account/api-key/route.ts index 0cc8388..36ca6a8 100644 --- a/app/api/account/api-key/route.ts +++ b/app/api/account/api-key/route.ts @@ -11,7 +11,7 @@ async function requireApiKeyAccess() { if (!hasProFeatures(user.plan)) { return { error: NextResponse.json( - { error: "API keys are available on the Pro plan only" }, + { error: "API key access is not available" }, { status: 403 }, ), user: null, diff --git a/lib/edition.ts b/lib/edition.ts index d7d2e5e..056c945 100644 --- a/lib/edition.ts +++ b/lib/edition.ts @@ -1,4 +1,4 @@ -import { Plan } from "@prisma/client"; +import { Plan } from "@prisma/client"; /** * Self-hosted / OSS edition. Prefer S2VID_EDITION; S2YT_EDITION kept for older compose files. diff --git a/lib/plans.ts b/lib/plans.ts index afe8657..3bd09c3 100644 --- a/lib/plans.ts +++ b/lib/plans.ts @@ -1,4 +1,4 @@ -import { Plan } from "@prisma/client"; +import { Plan } from "@prisma/client"; import { getResolution, RESOLUTIONS } from "./constants"; import { isSelfHostedEdition } from "./edition"; diff --git a/lib/quota.ts b/lib/quota.ts index 61695e1..924e7e2 100644 --- a/lib/quota.ts +++ b/lib/quota.ts @@ -1,4 +1,4 @@ -import { Plan } from "@prisma/client"; +import { Plan } from "@prisma/client"; import { prisma } from "./db"; import { getNextMonthlyQuotaReset, getPlanLimits } from "./plans";