🎨 🧹📝 remove todos, document typing

This commit is contained in:
Timur Ercan
2023-03-01 14:58:31 +01:00
parent 035371bc0b
commit 53094dd9e4
8 changed files with 7 additions and 18 deletions

View File

@ -5,7 +5,6 @@ import {
} from "@documenso/lib/server";
import prisma from "@documenso/prisma";
import { NextApiRequest, NextApiResponse } from "next";
import short from "short-uuid";
import { Document as PrismaDocument, FieldType } from "@prisma/client";
import { getDocument } from "@documenso/lib/query";
@ -79,7 +78,6 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {
positionX: +body.positionX,
positionY: +body.positionY,
customText: body.customText,
// todo refactor only one type of recipientId
recipientId: body.Recipient.id,
},
include: {

View File

@ -58,8 +58,6 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {
return res.status(200).send(recipients.length);
}
});
// todo check if recipient has an account and show them in their inbox or something
}
export default defaultHandler({

View File

@ -37,7 +37,6 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {
if (!document) res.status(404).end(`No document found.`);
// todo rename .document to documentImageAsBase64 or sth. like that
let documentWithInserts = document.document;
for (const signature of signaturesFromBody) {
if (!signature.signatureImage && !signature.typedSignature) {