Mingrate list.services to new logger
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
c57375f734
commit
0576f431dc
@ -1,15 +1,16 @@
|
|||||||
const log = require("../utils/logs.utils"); // Log Helper
|
|
||||||
const db = require("../services/dbAccess.services");
|
const db = require("../services/dbAccess.services");
|
||||||
|
|
||||||
|
import { logger } from "../utils/logger.utils";
|
||||||
|
|
||||||
async function getStations() {
|
async function getStations() {
|
||||||
var out = db.query("stations");
|
var out = db.query("stations");
|
||||||
log.out("listServices.getStations: Fetching stations list", "info");
|
logger.debug("listServices.getStations: Fetching stations list");
|
||||||
return await out;
|
return await out;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getCorpus() {
|
async function getCorpus() {
|
||||||
var out = db.query("corpus");
|
var out = db.query("corpus");
|
||||||
log.out("listServices.getCorpus: Fetching CORPUS list", "info");
|
logger.debug("listServices.getCorpus: Fetching CORPUS list");
|
||||||
return await out;
|
return await out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user