backend/src/services/stats.services.js
Fred Boniface b1940bcfbb Removed unneccesary vars and added notes for tidyup
in preparation for testing additional info

Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-02-16 10:39:19 +00:00

16 lines
404 B
JavaScript

const log = require('../utils/log.utils'); // Log Helper
const db = require('../services/dbAccess.services')
const os = require('os')
async function hits(){
var dat = db.query("meta", {target: "counters"});
log.out(`listServices.meta: fetched server meta`)
let out = {}
out.host = os.hostname()
out.dat = await dat
return out;
}
module.exports = {
hits
}