mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 12:23:09 +02:00
👍
This commit is contained in:
parent
42aef0abe0
commit
39dacbb58f
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue