From 03bca9502fe7992c6c5cdd6af454b5fc612d0d3a Mon Sep 17 00:00:00 2001 From: Sid-80 Date: Mon, 24 Jun 2024 16:34:34 +0530 Subject: [PATCH] fix: build --- convex/files.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/convex/files.tsx b/convex/files.tsx index a679606..0d9ffad 100644 --- a/convex/files.tsx +++ b/convex/files.tsx @@ -9,10 +9,18 @@ export const createFile = mutation({ archive: v.boolean(), document: v.string(), whiteboard: v.string(), - private: v.boolean(), }, handler: async (ctx, args) => { - const result = await ctx.db.insert("files", args); + const { fileName, createdBy, teamId, archive, document, whiteboard } = args; + const result = await ctx.db.insert("files", { + fileName, + createdBy, + teamId, + archive, + document, + whiteboard, + private: false, + }); return result; }, });