diff --git a/memento-note/app/api/ai/suggest-charts/route.ts b/memento-note/app/api/ai/suggest-charts/route.ts index 973c43d..01df66c 100644 --- a/memento-note/app/api/ai/suggest-charts/route.ts +++ b/memento-note/app/api/ai/suggest-charts/route.ts @@ -44,7 +44,7 @@ export async function POST(req: Request) { const sysConfigEarly = await getSystemConfig() const { usedByok: willUseByok } = await willUseByokForLane('suggest-charts', sysConfigEarly, userId) if (!willUseByok) { - await checkEntitlementOrThrow(userId, 'ai') + await checkEntitlementOrThrow(userId, 'suggest_charts') } } catch (err) { if (err instanceof QuotaExceededError) { @@ -169,7 +169,7 @@ Response format (JSON): ) // Track usage - await trackFeatureUsage(userId, 'ai', 'suggest-charts', 1) + await trackFeatureUsage(userId, 'suggest_charts', 'suggest-charts', 1) return Response.json(parsed satisfies SuggestChartsResponse) diff --git a/memento-note/app/layout.tsx b/memento-note/app/layout.tsx index d47549c..7b04df7 100644 --- a/memento-note/app/layout.tsx +++ b/memento-note/app/layout.tsx @@ -112,7 +112,9 @@ export default async function RootLayout({ >
-