2023-02-09 20:34:53 +00:00
|
|
|
const log = require('../utils/log.utils'); // Log Helper
|
|
|
|
const db = require('../services/dbAccess.services')
|
|
|
|
const os = require('os')
|
|
|
|
|
|
|
|
async function getStations(){
|
2023-02-16 21:25:19 +00:00
|
|
|
var out = db.query("stations")
|
2023-03-30 21:15:21 +01:00
|
|
|
log.out(`listServices.getStations: Fetching stations list`, "info")
|
2023-02-16 21:25:19 +00:00
|
|
|
return await out;
|
2023-02-09 20:34:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
async function getCorpus(){
|
2023-02-16 21:25:19 +00:00
|
|
|
var out = db.query("corpus")
|
2023-03-30 21:15:21 +01:00
|
|
|
log.out(`listServices.getCorpus: Fetching CORPUS list`, "info")
|
2023-02-16 21:25:19 +00:00
|
|
|
return await out;
|
2023-02-09 20:34:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
getStations,
|
|
|
|
getCorpus
|
|
|
|
}
|