6755-restoreRefactor #2158

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

View File

@ -46,22 +46,16 @@ class Controller extends Section {
};
this.$http.get(`TicketLogs/findOne`, {filter})
.then(res => {
console.log(res);
console.log(res.data.creationDate);
if (res && res.data) {
carlossa marked this conversation as resolved
Review

els LOOOOOGs

els LOOOOOGs
console.log(res.data);
const now = Date.vnNew();
const maxDate = new Date(res.data.creationDate);
maxDate.setHours(maxDate.getHours() + 1);
console.log(now, maxDatenow);
console.log(now.getTime(), maxDate.getTime());
if (now <= maxDate)
return this.canRestoreTicket = true;
}
this.canRestoreTicket = false;
})
.catch(() => {
console.log('ENTRY');
this.canRestoreTicket = false;
});
}