From 4e284e97b95d1fe93378b90061272e3abc875078 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 5 May 2017 17:24:16 +0200 Subject: Server: finish old jobs at startup --- server/models/job.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/models/job.js') diff --git a/server/models/job.js b/server/models/job.js index eeb50e16d..949f88d44 100644 --- a/server/models/job.js +++ b/server/models/job.js @@ -39,14 +39,14 @@ module.exports = function (sequelize, DataTypes) { // --------------------------------------------------------------------------- -function listWithLimit (limit, callback) { +function listWithLimit (limit, state, callback) { const query = { order: [ [ 'id', 'ASC' ] ], limit: limit, where: { - state: constants.JOB_STATES.PENDING + state } } -- cgit v1.2.3