u
This commit is contained in:
@@ -42,6 +42,15 @@ export default function update(pool) {
|
||||
.query(UPDATE);
|
||||
|
||||
await tx.commit();
|
||||
|
||||
return {
|
||||
id,
|
||||
root_category_id: company.root_category_id,
|
||||
language_id: languageId,
|
||||
taxrate: taxrateId,
|
||||
reducedtaxrate: reducedtaxrateId,
|
||||
taxfreerate: company.taxfreerate,
|
||||
};
|
||||
} catch (err) {
|
||||
try {
|
||||
await tx.rollback();
|
||||
|
||||
Reference in New Issue
Block a user