fix: errors to build

This commit is contained in:
diced
2024-04-15 21:46:15 -07:00
parent eb5467ec61
commit f1e2d50fd5
2 changed files with 1 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ export type File = {
size: number;
type: string;
views: number;
maxViews?: number;
maxViews?: number | null;
password?: string | boolean | null;
folderId: string | null;

View File

@@ -63,7 +63,6 @@ export async function handler(req: NextApiReq<Body, Query>, res: NextApiRes<ApiU
if (tags.length !== req.body.tags.length) return res.badRequest('invalid tag somewhere');
}
const newFile = await prisma.file.update({
where: {
id: req.query.id,