Clear old message by datetime, not by timestamp)
This commit is contained in:
parent
71737fa656
commit
8bda0c05c0
1 changed files with 1 additions and 2 deletions
|
@ -592,7 +592,7 @@ async function scheduleQueued() {
|
|||
const expiredCount = await knex('queued')
|
||||
.whereNotIn('send_configuration', sendConfigurationsIdsInProcessing)
|
||||
.where('type', type)
|
||||
.where('created', '<', expirationThreshold.threshold)
|
||||
.where('created', '<', new Date(expirationThreshold.threshold))
|
||||
.del();
|
||||
|
||||
if (expiredCount) {
|
||||
|
@ -731,4 +731,3 @@ async function init() {
|
|||
|
||||
// noinspection JSIgnoredPromiseFromCall
|
||||
init();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue