diff --git a/index.js b/index.js index 747dc3d..663758c 100644 --- a/index.js +++ b/index.js @@ -429,7 +429,7 @@ app.get('/mytask/:filename', (req, res)=>{ let destinationDir = process.env.COMMON_TASKF_PATH !== undefined ? process.env.COMMON_TASKF_PATH : '/opt/wrenchboard/TEST/TASKFILE'; // $selectedFile = $this->savePath.'PROFILE/'.$out["member_uid"]."/MYFILES/". $out["saved_file_name"]; - const completeFile = myfilesCommonPath+"/"+jobUID+"/" + findFilename; + const completeFile = destinationDir+"/"+jobUID+"/" + findFilename; if(!completeFile){ console.log("Finding File Not Found ", completeFile); return res.status(404).send('File not found')