From 4ecbb59ac01a88db5679afe84a68a93d56d7d99f Mon Sep 17 00:00:00 2001 From: joan Date: Mon, 10 Oct 2022 07:49:08 +0200 Subject: [PATCH] Closure hours --- modules/ticket/back/methods/ticket/closeAll.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/ticket/back/methods/ticket/closeAll.js b/modules/ticket/back/methods/ticket/closeAll.js index 4f3813eb8..5e81e3827 100644 --- a/modules/ticket/back/methods/ticket/closeAll.js +++ b/modules/ticket/back/methods/ticket/closeAll.js @@ -18,6 +18,7 @@ module.exports = Self => { Self.closeAll = async() => { const toDate = new Date(); + toDate.setHours(0, 0, 0, 0); toDate.setDate(toDate.getDate() - 1); const todayMinDate = new Date();