Skip to content

Commit 3ceb4c0

Browse files
committed
personal helper function removed in favor of original
1 parent 40f68b2 commit 3ceb4c0

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

chronos_npm_package/controllers/mongo.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,6 @@ mongo.health = async ({ microservice, interval, mode }) => {
113113
const getCurrentMets = async () => await MetricsModel.find({ mode });
114114
const currentMetrics = async () => await getCurrentMets()
115115
currentMetrics()
116-
// let currentMetricNames = {}
117-
118-
// l = await mongo.getSavedMetricsLength(mode, currentMetricNames);
119116

120117
setInterval(() => {
121118
collectHealthData()
@@ -302,23 +299,6 @@ mongo.addMetrics = async (healthMetrics, mode, currentMetricNames) => {
302299
await MetricsModel.create(newMets);
303300
return healthMetrics.length;
304301
};
305-
306-
mongo.mikesAdd = async(healthMetrics,mode,currentMetrics) => {
307-
// console.log("INSIDE MIKES ADD")
308-
const metricMetaData = []
309-
for(let healthMetric of healthMetrics) {
310-
if(!currentMetrics[healthMetric]) {
311-
const newMetric = {
312-
metric: healthMetric.metric,
313-
mode:mode
314-
}
315-
metricMetaData.push(newMetric)
316-
}
317-
}
318-
// console.log("META DATA",metricMetaData)
319-
const mikesTest = await MetricsModel.create({metricMetaData})
320-
return mikesTest
321-
}
322302
// This middleware could be used if the user would like to update their chronos data in real time (immediately after updating saved metrics on the Chronos desktop app), but they would have to expose a URL/port to be queried for the Electron front end.
323303
//
324304
// mongo.modifyMetrics = (config) => {

0 commit comments

Comments
 (0)