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