diff --git a/src/app/api/v1/commercial_license_trial/route.ts b/src/app/api/v1/commercial_license_trial/route.ts index c2c6855..ca8d63b 100644 --- a/src/app/api/v1/commercial_license_trial/route.ts +++ b/src/app/api/v1/commercial_license_trial/route.ts @@ -103,6 +103,8 @@ export async function checkUserInDB(req: NextRequest): Promise<{ .select("*") .eq("user_id", user.id) .limit(1) + // The commercial_license_trial only shows rows where the user has made + // at least one call to /v1/commercial_license_trial. .maybeSingle(); if (res.error) { throw convertPgError(res.error);