refs #6023 Minor changes
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Guillermo Bonet 2023-08-29 13:45:20 +02:00
parent d1df8009a6
commit 9f6d034f9c
1 changed files with 2 additions and 2 deletions

View File

@ -86,9 +86,9 @@ module.exports = Self => {
await userToUpdate.save(myOptions);
await models.Account.sync(userToUpdate.name, null, null, myOptions);
await tx.commit();
if (tx) await tx.commit();
} catch (err) {
await tx.rollback();
if (tx) await tx.rollback();
throw err;
};
};