fix: refs #6005 time issue
gitea/salix/pipeline/pr-test This commit looks good Details

This commit is contained in:
Pablo Natek 2024-05-03 12:08:22 +02:00
parent 7eb2e8f218
commit 8b11a4a290
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ module.exports = Self => {
const {backupPrinterNotificationDelay} = await models.ProductionConfig.findOne();
if (backupPrinterNotificationDelay) {
const notifications = await models.NotificationQueue.find(
{where: {created: {gte: Date.vnNow() - (backupPrinterNotificationDelay * 1000) + (3600 * 1000)},
{where: {created: {gte: new Date(Date.vnNow() - (backupPrinterNotificationDelay * 1000))},
notificationFk: notificationName,
status: 'sent'
}