migration to GridFS's DriveFile

This commit is contained in:
otofune 2017-11-06 15:18:45 +09:00
parent 7e81e0db6a
commit 18b1ef29ad
11 changed files with 66 additions and 70 deletions

View file

@ -44,7 +44,9 @@ const self = (
});
const childFilesCount = await DriveFile.count({
folder_id: _folder.id
metadata: {
folder_id: _folder.id
}
});
_folder.folders_count = childFoldersCount;