refs #6755 remove console
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Carlos Satorres 2024-03-13 11:46:43 +01:00
parent a6d1c5b6db
commit 92cf8fc5e1
1 changed files with 0 additions and 6 deletions

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