Skip to content

Commit

Permalink
fix to empty download
Browse files Browse the repository at this point in the history
  • Loading branch information
patheticGeek committed Jun 27, 2020
1 parent 0b7b37c commit fa06ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/gdrive.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function getFiles(folderId) {
}

function sendFileStream(req, res) {
const fileId = req.params.id || req.query.id;
const fileId = req.query.id || req.params.id;
if (!fileId) res.sendStatus(404);
drive.files.get(
{
Expand Down

0 comments on commit fa06ed1

Please sign in to comment.