From 44717ca3a9dcbe7c8ffcfcc5660e3f07577f2e5d Mon Sep 17 00:00:00 2001 From: Polaris Date: Tue, 23 Jul 2024 17:34:48 -0400 Subject: [PATCH] added comments --- app/(sharing)/[token]/token.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/(sharing)/[token]/token.ts b/app/(sharing)/[token]/token.ts index eb82cfb..6175c33 100644 --- a/app/(sharing)/[token]/token.ts +++ b/app/(sharing)/[token]/token.ts @@ -7,10 +7,9 @@ import { randomBytes } from "crypto"; import { redirect } from "next/navigation"; export async function generateShareToken(id: number): Promise<{ - token?: string; // share token - id?: string; // playlog id after the token - error?: string; // error -}> { + token?: string; + id?: string; + error?: string; const { user } = await getAuth(); if (!user || !user.id || typeof user.id !== "string") {