Missing await
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2022-09-07 10:48:24 +02:00
parent aba1696ad7
commit 8f86cacc96
1 changed files with 3 additions and 2 deletions

View File

@ -79,6 +79,7 @@ module.exports = Self => {
// Update files checksum
for (const file of updatableFiles) {
console.log(`Updating file ${file.name} checksum...`);
await Self.rawSql(`
UPDATE edi.fileConfig
SET checksum = ?
@ -226,9 +227,9 @@ module.exports = Self => {
`, [new Date(), baseName], options);
}
tx.commit();
await tx.commit();
} catch (error) {
tx.rollback();
await tx.rollback();
throw error;
}
console.log(`Updated table ${toTable}\n`);