feat: impl multi file/dir moving

Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
2025-09-21 17:03:50 +00:00
parent a331276c43
commit 29eab87c71
10 changed files with 147 additions and 53 deletions

View File

@@ -141,13 +141,3 @@ export const moveToTrash = authenticatedMutation({
return itemId
},
})
export const moveFiles = authenticatedMutation({
args: {
targetDirectoryId: v.id("directories"),
items: v.array(v.id("files")),
},
handler: async (ctx, { targetDirectoryId, items }) => {
return await Files.moveFiles(ctx, { targetDirectoryId, items })
},
})