From 33537abd896c067f08d778fcd9c281cfa9b71566 Mon Sep 17 00:00:00 2001 From: Storm Date: Sun, 15 Dec 2024 00:53:13 +0100 Subject: [PATCH] chore: add comment --- src/app/api/v1/commercial_license_trial/route.ts | 2 ++ 1 file changed, 2 insertions(+) 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);