added comments
This commit is contained in:
@ -10,6 +10,7 @@ export async function generateShareToken(id: number): Promise<{
|
|||||||
token?: string;
|
token?: string;
|
||||||
id?: string;
|
id?: string;
|
||||||
error?: string;
|
error?: string;
|
||||||
|
}> {
|
||||||
const { user } = await getAuth();
|
const { user } = await getAuth();
|
||||||
|
|
||||||
if (!user || !user.id || typeof user.id !== "string") {
|
if (!user || !user.id || typeof user.id !== "string") {
|
||||||
|
Reference in New Issue
Block a user