refs #6755 remove console
gitea/salix/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
a6d1c5b6db
commit
92cf8fc5e1
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue