Transaction fix
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2022-06-03 13:01:39 +02:00
parent b790ee88d9
commit 33049c507f
1 changed files with 2 additions and 2 deletions

View File

@ -148,9 +148,9 @@ module.exports = Self => {
SET updated = ?
WHERE fileName = ?
`, [lastUpdated, baseName], options);
tx.commit();
}
tx.commit();
} catch (error) {
tx.rollback();
throw error;