mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 15:53:09 +02:00
Fix bug
This commit is contained in:
parent
bd707cb2a8
commit
ad7258fe9c
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue