7152-devToTest_2414 #2228

Merged
alexm merged 636 commits from 7152-devToTest_2414 into test 2024-03-28 08:26:34 +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) {
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;
});
}