Missing await
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
aba1696ad7
commit
8f86cacc96
|
@ -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`);
|
||||
|
|
Loading…
Reference in New Issue