From 8ddbcc24a79eab71d083cb92d6472bf4dbaef677 Mon Sep 17 00:00:00 2001 From: joan Date: Thu, 18 Feb 2021 13:03:49 +0100 Subject: [PATCH] Added priority to image download queue --- modules/item/back/methods/item-image-queue/downloadImages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/item/back/methods/item-image-queue/downloadImages.js b/modules/item/back/methods/item-image-queue/downloadImages.js index bee5492bc..e3412d6a8 100644 --- a/modules/item/back/methods/item-image-queue/downloadImages.js +++ b/modules/item/back/methods/item-image-queue/downloadImages.js @@ -41,7 +41,7 @@ module.exports = Self => { async function download() { const image = await Self.findOne({ where: {url: {neq: null}, attempts: {lt: maxAttempts}}, - order: 'attempts, updated' + order: 'priority, attempts, updated' }); if (!image) return;