mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
Apply prettier config to all files
This commit is contained in:
@ -2,11 +2,7 @@ import { getUserFromToken } from "@documenso/lib/server";
|
||||
import prisma from "@documenso/prisma";
|
||||
import { Document as PrismaDocument } from "@prisma/client";
|
||||
|
||||
export const getDocument = async (
|
||||
documentId: number,
|
||||
req: any,
|
||||
res: any
|
||||
): Promise<PrismaDocument> => {
|
||||
export const getDocument = async (documentId: number, req: any, res: any): Promise<PrismaDocument> => {
|
||||
const user = await getUserFromToken(req, res);
|
||||
if (!user) return Promise.reject("Invalid user or token.");
|
||||
if (!documentId) Promise.reject("No documentId");
|
||||
|
||||
Reference in New Issue
Block a user