mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 12:39:59 +01:00
👍
This commit is contained in:
parent
995d3bb739
commit
ed68b3ee1f
@ -135,6 +135,8 @@ async function sendFileById(req: express.Request, res: express.Response): Promis
|
|||||||
}
|
}
|
||||||
|
|
||||||
const fileId = new mongodb.ObjectID(req.params.id);
|
const fileId = new mongodb.ObjectID(req.params.id);
|
||||||
|
|
||||||
|
// Fetch (drive) file
|
||||||
const file = await DriveFile.findOne({ _id: fileId });
|
const file = await DriveFile.findOne({ _id: fileId });
|
||||||
|
|
||||||
// validate name
|
// validate name
|
||||||
|
Loading…
Reference in New Issue
Block a user