Updated downloadFile API request

This commit is contained in:
Isaac Abadi
2022-04-23 21:41:39 -04:00
parent f3398fce1a
commit 0bc2193f25
2 changed files with 3 additions and 3 deletions

View File

@@ -803,7 +803,7 @@ app.post('/api/testConnectionString', optionalJwt, async (req, res) => {
app.post('/api/downloadFile', optionalJwt, async function(req, res) {
req.setTimeout(0); // remove timeout in case of long videos
const url = req.body.url;
const type = req.body.type;
const type = req.body.type ? req.body.type : 'video';
const user_uid = req.isAuthenticated() ? req.user.uid : null;
const options = {
customArgs: req.body.customArgs,