1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-12 13:48:28 +09:00
This commit is contained in:
syuilo 2018-10-11 05:26:51 +09:00
parent 1067bef7d6
commit 9e4b061ed0

View File

@ -22,7 +22,8 @@ export default async (params: any, user: ILocalUser) => {
const file = await DriveFile const file = await DriveFile
.findOne({ .findOne({
_id: fileId, _id: fileId,
'metadata.userId': user._id 'metadata.userId': user._id,
'metadata.deletedAt': { $exists: false }
}); });
if (file === null) { if (file === null) {