Commit d0dbee69 authored by Shani's avatar Shani

Merge branch 'dev' into 'dev'

Fix last config overriding

See merge request sdoc/billrun!2839
parents 7d9b1474 05a11bbc
......@@ -340,8 +340,6 @@ lastConfig['subscribers'] = addFieldToConfig(lastConfig['subscribers'], detailed
// BRCD-1636 Add new custom 'play' field to Subscribers.
var lastConfig = db.config.find().sort({_id: -1}).limit(1).pretty()[0];
delete lastConfig['_id'];
var fields = lastConfig['subscribers']['subscriber']['fields'];
var found = false;
for (var field_key in fields) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment