Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
storm1729 committed Dec 14, 2024
1 parent a01c76a commit 33537ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/api/v1/commercial_license_trial/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 33537ab

Please sign in to comment.