feat: added snapshot for batch

This commit is contained in:
Sheen Capadngan
2024-05-10 15:46:31 +08:00
parent 2559809eac
commit 3fff272cb3

View File

@@ -207,6 +207,8 @@ export const secretFolderServiceFactory = ({
)
);
await Promise.all(result.map(async (res) => snapshotService.performSnapshot(res.newFolder.parentId as string)));
return {
newFolders: result.map((res) => res.newFolder),
oldFolders: result.map((res) => res.oldFolder)