Send response before ending task execution
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2022-09-06 12:54:33 +02:00
parent 011e372558
commit 6410a4db42
1 changed files with 3 additions and 1 deletions

View File

@ -16,7 +16,7 @@ module.exports = Self => {
} }
}); });
Self.updateData = async() => { Self.updateData = async callback => {
const models = Self.app.models; const models = Self.app.models;
// Get files checksum // Get files checksum
@ -35,6 +35,8 @@ module.exports = Self => {
console.debug(`File already updated, skipping...`); console.debug(`File already updated, skipping...`);
} }
callback(null, true);
if (updatableFiles.length === 0) if (updatableFiles.length === 0)
return false; return false;