tx commit
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2022-09-08 10:33:51 +02:00
parent 151e1b52ed
commit b499de7c08
1 changed files with 2 additions and 1 deletions

View File

@ -91,6 +91,8 @@ module.exports = Self => {
[file.checksum, file.name], options); [file.checksum, file.name], options);
} }
await tx.commit();
// Clean files // Clean files
try { try {
console.debug(`Cleaning files...`); console.debug(`Cleaning files...`);
@ -101,7 +103,6 @@ module.exports = Self => {
} }
} catch (error) { } catch (error) {
await tx.rollback(); await tx.rollback();
console.log(error);
throw error; throw error;
} }