Update add-file.ts

This commit is contained in:
syuilo 2018-05-14 12:47:33 +09:00
parent 5dbc9a1ac8
commit 7f17a44078

View file

@ -119,7 +119,7 @@ const addFile = async (
const much = await DriveFile.findOne({
md5: hash,
'metadata.userId': user._id,
deletedAt: { $exists: false }
'metadata.deletedAt': { $exists: false }
});
if (much !== null) {