From 7e378730452e6fd304cf897665fd3ac726141d34 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 11 Oct 2018 05:26:09 +0900 Subject: [PATCH] Fix bug --- src/server/api/endpoints/drive/files/check_existence.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/api/endpoints/drive/files/check_existence.ts b/src/server/api/endpoints/drive/files/check_existence.ts index 73d75b7ca..a02470165 100644 --- a/src/server/api/endpoints/drive/files/check_existence.ts +++ b/src/server/api/endpoints/drive/files/check_existence.ts @@ -27,7 +27,8 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) = const file = await DriveFile.findOne({ md5: md5, - 'metadata.userId': user._id + 'metadata.userId': user._id, + 'metadata.deletedAt': { $exists: false } }); if (file === null) {