MongoDBの階層構造検索に関する思い違いの修正

This commit is contained in:
otofune
2017-11-06 16:22:18 +09:00
parent b266ed3e4f
commit 64be0d6ded
8 changed files with 15 additions and 36 deletions

View File

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