Update add-file.ts

This commit is contained in:
syuilo 2018-05-14 12:47:33 +09:00
parent f5d2cb5c61
commit 1641d6bce2

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) {