This commit is contained in:
syuilo 2018-10-11 05:26:09 +09:00
parent 8bff529acd
commit 1067bef7d6
1 changed files with 2 additions and 1 deletions

View File

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