newStaffLDB-API #48
@ -1,15 +1,14 @@
|
||||
const db = require("../services/dbAccess.services");
|
||||
|
||||
import { query } from "./dbAccess.services";
|
||||
import { logger } from "../utils/logger.utils";
|
||||
|
||||
async function getStations() {
|
||||
var out = db.query("stations");
|
||||
var out = query("stations");
|
||||
logger.debug("listServices.getStations: Fetching stations list");
|
||||
return await out;
|
||||
}
|
||||
|
||||
async function getCorpus() {
|
||||
var out = db.query("corpus");
|
||||
var out = query("corpus");
|
||||
logger.debug("listServices.getCorpus: Fetching CORPUS list");
|
||||
return await out;
|
||||
}
|
Loading…
Reference in New Issue
Block a user