2021-02-26 20:50:08 +00:00
|
|
|
const sql = require('./mysql')
|
|
|
|
|
|
|
|
function getStreamNames() {
|
2021-03-06 09:24:10 +00:00
|
|
|
let data = sql.query(`SELECT id, streamName FROM BBLB_DNS.streams`)
|
2021-02-26 20:50:08 +00:00
|
|
|
// console.log(data)
|
|
|
|
if (data.length == 0) {
|
|
|
|
return 'StreamsFailed'
|
|
|
|
} else {
|
|
|
|
return data
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
getStreamNames
|
|
|
|
}
|
|
|
|
|