file var
This commit is contained in:
@@ -47,7 +47,8 @@ app.use(cors(corsOptions));
|
||||
|
||||
app.get('/videos/:filename', (req, res)=>{
|
||||
const fileName = req.params.filename;
|
||||
const findFilename = 'What Is Single Sign-on (SSO)? How It Works-(1080p25).mp4';
|
||||
//var findFilename = 'What Is Single Sign-on (SSO)? How It Works-(1080p25).mp4';
|
||||
var findFilename = '';
|
||||
//c35c32bc-9ce4-4ca5-9afc-1ecddfd649f5
|
||||
let Qstring = "SELECT * FROM common_media WHERE uid ='"+fileName+"'";
|
||||
console.log("Qstring -> ", Qstring);
|
||||
@@ -61,7 +62,9 @@ app.get('/videos/:filename', (req, res)=>{
|
||||
// }
|
||||
console.log("THIS IS RESULT --> ",result.rows[0].filename);
|
||||
console.log("THIS IS RESULT COUNT --> ",result.rowCount);
|
||||
//findFilename = result.rows[0].filename;
|
||||
if ( result.rowCount === 1){
|
||||
findFilename = result.rows[0].filename;
|
||||
}
|
||||
} catch (e) {
|
||||
console.log("ERR->",e.message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user