mirror of
https://github.com/get-drexa/drive.git
synced 2025-12-01 05:51:39 +00:00
feat: impl file/dir restoration from trash
This commit is contained in:
@@ -127,3 +127,12 @@ export const permanentlyDeleteItems = authenticatedMutation({
|
||||
return await FileSystem.deleteItemsPermanently(ctx, { handles })
|
||||
},
|
||||
})
|
||||
|
||||
export const restoreItems = authenticatedMutation({
|
||||
args: {
|
||||
handles: v.array(VFileSystemHandle),
|
||||
},
|
||||
handler: async (ctx, { handles }) => {
|
||||
return await FileSystem.restoreItems(ctx, { handles })
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user