2023-02-09 20:34:53 +00:00
|
|
|
const log = require('../utils/log.utils'); // Log Helper
|
2023-05-06 21:54:49 +01:00
|
|
|
const db = require('../services/dbAccess.services');
|
2023-02-09 20:34:53 +00:00
|
|
|
|
|
|
|
async function getStations(){
|
2023-05-06 21:54:49 +01:00
|
|
|
var out = db.query('stations');
|
|
|
|
log.out('listServices.getStations: Fetching stations list', 'info');
|
|
|
|
return await out;
|
2023-02-09 20:34:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
async function getCorpus(){
|
2023-05-06 21:54:49 +01:00
|
|
|
var out = db.query('corpus');
|
|
|
|
log.out('listServices.getCorpus: Fetching CORPUS list', 'info');
|
|
|
|
return await out;
|
2023-02-09 20:34:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = {
|
2023-05-06 21:54:49 +01:00
|
|
|
getStations,
|
|
|
|
getCorpus
|
|
|
|
};
|