changed line
gitea/salix/1959-client_fiscal_data_check_phone This commit looks good
Details
gitea/salix/1959-client_fiscal_data_check_phone This commit looks good
Details
This commit is contained in:
parent
494b14bab4
commit
041c4966d6
|
@ -107,16 +107,15 @@ module.exports = Self => {
|
||||||
throw new UserError(`You can't make changes on a client with verified data`);
|
throw new UserError(`You can't make changes on a client with verified data`);
|
||||||
|
|
||||||
if (args.despiteOfClient) {
|
if (args.despiteOfClient) {
|
||||||
const translatedDescription = $t(`Client checked as validated despite of duplication`, {
|
|
||||||
clientId: args.despiteOfClient
|
|
||||||
});
|
|
||||||
const logRecord = {
|
const logRecord = {
|
||||||
originFk: clientId,
|
originFk: clientId,
|
||||||
userFk: userId,
|
userFk: userId,
|
||||||
action: 'update',
|
action: 'update',
|
||||||
changedModel: 'Client',
|
changedModel: 'Client',
|
||||||
changedModelId: clientId,
|
changedModelId: clientId,
|
||||||
description: translatedDescription
|
description: $t(`Client checked as validated despite of duplication`, {
|
||||||
|
clientId: args.despiteOfClient
|
||||||
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
await models.ClientLog.create(logRecord);
|
await models.ClientLog.create(logRecord);
|
||||||
|
|
Loading…
Reference in New Issue