This commit is contained in:
parent
7eb2e8f218
commit
8b11a4a290
|
@ -18,7 +18,7 @@ module.exports = Self => {
|
||||||
const {backupPrinterNotificationDelay} = await models.ProductionConfig.findOne();
|
const {backupPrinterNotificationDelay} = await models.ProductionConfig.findOne();
|
||||||
if (backupPrinterNotificationDelay) {
|
if (backupPrinterNotificationDelay) {
|
||||||
const notifications = await models.NotificationQueue.find(
|
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,
|
notificationFk: notificationName,
|
||||||
status: 'sent'
|
status: 'sent'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue