Fix DatabaseTaskStore.listStaleTask PG query
Signed-off-by: OscarDHdz <v-ohernandez@expediagroup.com>
This commit is contained in:
@@ -269,8 +269,7 @@ export class DatabaseTaskStore implements TaskStore {
|
||||
'<=',
|
||||
this.db.client.config.client.includes('sqlite3')
|
||||
? this.db.raw(`datetime('now', ?)`, [`-${timeoutS} seconds`])
|
||||
: this.db.raw(`dateadd('second', ?, ?)`, [
|
||||
`-${timeoutS}`,
|
||||
: this.db.raw(`? - interval '${timeoutS} seconds'`, [
|
||||
this.db.fn.now(),
|
||||
]),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user