@dhyasama/totem-models 11.137.0 → 11.138.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Financials.js +0 -11
- package/package.json +1 -1
package/lib/Financials.js
CHANGED
|
@@ -1241,17 +1241,6 @@ module.exports = function(mongoose, config) {
|
|
|
1241
1241
|
|
|
1242
1242
|
updateStatus(self);
|
|
1243
1243
|
|
|
1244
|
-
// Wipe out previous values on metrics when a metric is verified
|
|
1245
|
-
_.each(self.snapshots, function(snapshot) {
|
|
1246
|
-
if (snapshot) {
|
|
1247
|
-
_.each(snapshot.metrics, function(metric) {
|
|
1248
|
-
if (metric && metric.verified && metric.previous) {
|
|
1249
|
-
metric.previous = undefined;
|
|
1250
|
-
}
|
|
1251
|
-
});
|
|
1252
|
-
}
|
|
1253
|
-
});
|
|
1254
|
-
|
|
1255
1244
|
return next();
|
|
1256
1245
|
|
|
1257
1246
|
});
|