6755-restoreRefactor #2158

Merged
carlossa merged 20 commits from 6755-restoreRefactor into dev 2024-03-14 08:56:10 +00:00
2 changed files with 41 additions and 1 deletions
Showing only changes of commit 893320b114 - Show all commits

View File

@ -37,6 +37,11 @@ module.exports = Self => {
} }
}] }]
}, myOptions); }, myOptions);
const lastUpdatedTicket = await models.ticketLog.findById(id, {
include: [{
}]
});
const now = Date.vnNew(); const now = Date.vnNew();
const maxDate = new Date(ticket.updated); const maxDate = new Date(ticket.updated);

View File

@ -5,5 +5,40 @@
"mysql": { "mysql": {
"table": "ticketLog" "table": "ticketLog"
} }
},
"properties": {
"id": {
"type": "string"
},
"originFk": {
"type": "number"
},
"userFk": {
"type":"number"
},
"action": {
"type": "string"
},
"creationDate": {
"type": "date"
},
"description": {
"type": "string"
},
"changeModel": {
"type": "string"
},
"oldInstance": {
"type": "string"
},
"newInstance": {
"type": "string"
},
"changedModelId": {
"type": "number"
},
"changedModelValue": {
"type": "string"
}
} }
} }