Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
Sid-80 committed Jun 24, 2024
1 parent 83a5d1a commit 03bca95
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions convex/files.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},
});
Expand Down

0 comments on commit 03bca95

Please sign in to comment.