mirror of
https://github.com/diced/zipline.git
synced 2026-02-04 19:11:42 -08:00
fix: errors to build
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user