17 lines
299 B
JavaScript
17 lines
299 B
JavaScript
const sql = require('./mysql')
|
|
|
|
function getStreamNames() {
|
|
let data = sql.query(`SELECT id, streamName FROM BBLB_DNS.streams`)
|
|
// console.log(data)
|
|
if (data.length == 0) {
|
|
return 'StreamsFailed'
|
|
} else {
|
|
return data
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
getStreamNames
|
|
}
|
|
|