2023-02-09 20:34:53 +00:00
|
|
|
const log = require('../utils/log.utils'); // Log Helper
|
|
|
|
const db = require('../services/dbAccess.services')
|
|
|
|
const os = require('os')
|
|
|
|
|
|
|
|
async function hits(){
|
2023-02-16 10:39:19 +00:00
|
|
|
var dat = db.query("meta", {target: "counters"});
|
2023-02-09 20:34:53 +00:00
|
|
|
log.out(`listServices.meta: fetched server meta`)
|
|
|
|
let out = {}
|
|
|
|
out.host = os.hostname()
|
2023-02-16 10:39:19 +00:00
|
|
|
out.dat = await dat
|
2023-02-09 20:34:53 +00:00
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
hits
|
|
|
|
}
|