changed line
gitea/salix/1959-client_fiscal_data_check_phone This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-02-04 12:29:04 +01:00
parent 494b14bab4
commit 041c4966d6
1 changed files with 3 additions and 4 deletions

View File

@ -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);