1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-18 08:38:52 +09:00
This commit is contained in:
syuilo 2018-10-26 15:06:27 +09:00
parent bd707cb2a8
commit ad7258fe9c
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -44,7 +44,7 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) =
const [childFoldersCount, childFilesCount] = await Promise.all([
DriveFolder.count({ parentId: folder._id }),
DriveFile.count({ folderId: folder._id })
DriveFile.count({ 'metadata.folderId': folder._id })
]);
if (childFoldersCount !== 0 || childFilesCount !== 0) {