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`);
|
||||
|
||||
if (args.despiteOfClient) {
|
||||
const translatedDescription = $t(`Client checked as validated despite of duplication`, {
|
||||
clientId: args.despiteOfClient
|
||||
});
|
||||
const logRecord = {
|
||||
originFk: clientId,
|
||||
userFk: userId,
|
||||
action: 'update',
|
||||
changedModel: 'Client',
|
||||
changedModelId: clientId,
|
||||
description: translatedDescription
|
||||
description: $t(`Client checked as validated despite of duplication`, {
|
||||
clientId: args.despiteOfClient
|
||||
})
|
||||
};
|
||||
|
||||
await models.ClientLog.create(logRecord);
|
||||
|
|
Loading…
Reference in New Issue