From 9e4b061ed0ee432648c7e704145811330dd5e7e7 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 11 Oct 2018 05:26:51 +0900 Subject: [PATCH] Fix bug --- src/server/api/endpoints/drive/files/show.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/api/endpoints/drive/files/show.ts b/src/server/api/endpoints/drive/files/show.ts index 718fb8c2d7..e35c5e3ca2 100644 --- a/src/server/api/endpoints/drive/files/show.ts +++ b/src/server/api/endpoints/drive/files/show.ts @@ -22,7 +22,8 @@ export default async (params: any, user: ILocalUser) => { const file = await DriveFile .findOne({ _id: fileId, - 'metadata.userId': user._id + 'metadata.userId': user._id, + 'metadata.deletedAt': { $exists: false } }); if (file === null) {