diff --git a/lib/customers.js b/lib/customers.js index 4065f3b5..b6cb4268 100644 --- a/lib/customers.js +++ b/lib/customers.js @@ -273,7 +273,7 @@ function updateOverride (fields) { const updatedFields = _.intersection(updateableFields, _.keys(fields)) const overrideFields = _.fromPairs(_.map(f => _.endsWith('_path', f) - ? [`${_.replace('_path', '', f)}_override`, 'automatic'] + ? [`${_.replace('_path', '_override', f)}`, 'automatic'] : [`${f}_override`, 'automatic'] , updatedFields))