Merge pull request 'master' (!2483) from master into test
Reviewed-on: #2483 Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
commit
2291c3ca86
|
@ -8,7 +8,8 @@
|
|||
},
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
"type": "number",
|
||||
"id": true
|
||||
},
|
||||
"originFk": {
|
||||
"type": "number"
|
||||
|
|
|
@ -37,14 +37,15 @@ class Controller extends Section {
|
|||
});
|
||||
|
||||
const filter = {
|
||||
fields: ['originFk', 'creationDate', 'newInstance'],
|
||||
fields: ['id', 'originFk', 'creationDate', 'newInstance'],
|
||||
where: {
|
||||
originFk: value,
|
||||
newInstance: {like: '%"isDeleted":true%'}
|
||||
},
|
||||
order: 'creationDate DESC'
|
||||
order: 'creationDate DESC',
|
||||
limit: 1
|
||||
};
|
||||
this.$http.get(`TicketLogs/findOne`, {filter})
|
||||
this.$http.get(`TicketLogs`, {filter})
|
||||
.then(res => {
|
||||
if (res && res.data) {
|
||||
const now = Date.vnNew();
|
||||
|
|
Loading…
Reference in New Issue