fix: remove user_tokens from _override_by customer fields

This commit is contained in:
Sérgio Salgado 2021-02-02 17:23:30 +00:00 committed by Josh Harvey
parent 1bc944386b
commit eb91d882c7
2 changed files with 7 additions and 7 deletions

View file

@ -399,7 +399,7 @@ function computeStatus (customer) {
function populateOverrideUsernames (customer) {
const fieldsToUpdate = _.map(field => {
return {
token: customer[field + '_override_by'],
token: customer[field + '_override_by'] || customer[field + '_override_by_old'],
field: field + '_override_by_name'
}
}, getComplianceTypes())