backend/src/services/list.services.js
Fred Boniface c00be2aeda Add log levels to services
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-03-30 21:15:21 +01:00

20 lines
522 B
JavaScript

const log = require('../utils/log.utils'); // Log Helper
const db = require('../services/dbAccess.services')
const os = require('os')
async function getStations(){
var out = db.query("stations")
log.out(`listServices.getStations: Fetching stations list`, "info")
return await out;
}
async function getCorpus(){
var out = db.query("corpus")
log.out(`listServices.getCorpus: Fetching CORPUS list`, "info")
return await out;
}
module.exports = {
getStations,
getCorpus
}