Transaction fix
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
b790ee88d9
commit
33049c507f
|
@ -148,9 +148,9 @@ module.exports = Self => {
|
||||||
SET updated = ?
|
SET updated = ?
|
||||||
WHERE fileName = ?
|
WHERE fileName = ?
|
||||||
`, [lastUpdated, baseName], options);
|
`, [lastUpdated, baseName], options);
|
||||||
|
|
||||||
tx.commit();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tx.commit();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
tx.rollback();
|
tx.rollback();
|
||||||
throw error;
|
throw error;
|
||||||
|
|
Loading…
Reference in New Issue