From 6410a4db42d1b38f9f9b6603c7091eae1184c347 Mon Sep 17 00:00:00 2001 From: joan Date: Tue, 6 Sep 2022 12:54:33 +0200 Subject: [PATCH] Send response before ending task execution --- back/methods/edi/updateData.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/back/methods/edi/updateData.js b/back/methods/edi/updateData.js index 121e96778..ef0a84d19 100644 --- a/back/methods/edi/updateData.js +++ b/back/methods/edi/updateData.js @@ -16,7 +16,7 @@ module.exports = Self => { } }); - Self.updateData = async() => { + Self.updateData = async callback => { const models = Self.app.models; // Get files checksum @@ -35,6 +35,8 @@ module.exports = Self => { console.debug(`File already updated, skipping...`); } + callback(null, true); + if (updatableFiles.length === 0) return false;