mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
qoc
This commit is contained in:
@ -6,7 +6,7 @@ export const getDocumentsForUserFromToken = async (
|
|||||||
context: any
|
context: any
|
||||||
): Promise<PrismaDocument[]> => {
|
): Promise<PrismaDocument[]> => {
|
||||||
const user = await getUserFromToken(context.req, context.res);
|
const user = await getUserFromToken(context.req, context.res);
|
||||||
if (!user) return Promise.reject("Invalid user or token.s");
|
if (!user) return Promise.reject("Invalid user or token.");
|
||||||
|
|
||||||
const documents: PrismaDocument[] = await prisma.document.findMany({
|
const documents: PrismaDocument[] = await prisma.document.findMany({
|
||||||
where: {
|
where: {
|
||||||
|
|||||||
Reference in New Issue
Block a user