From 39dacbb58fa677dcc881cac6f466312f4a64b464 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 9 Dec 2017 23:03:48 +0900 Subject: [PATCH] :+1: --- src/file/server.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/file/server.ts b/src/file/server.ts index 187ce75c20..990b6ccbeb 100644 --- a/src/file/server.ts +++ b/src/file/server.ts @@ -135,6 +135,8 @@ async function sendFileById(req: express.Request, res: express.Response): Promis } const fileId = new mongodb.ObjectID(req.params.id); + + // Fetch (drive) file const file = await DriveFile.findOne({ _id: fileId }); // validate name