u
This commit is contained in:
@@ -43,7 +43,15 @@ export default function create(pool) {
|
||||
.query(CREATE);
|
||||
|
||||
await tx.commit();
|
||||
return result.recordset[0].id;
|
||||
|
||||
return {
|
||||
id: result.recordset[0].id,
|
||||
root_category_id: rootCategoryId,
|
||||
language_id: languageId,
|
||||
taxrate: taxrateId,
|
||||
reducedtaxrate: reducedtaxrateId,
|
||||
taxfreerate: taxfreerateId,
|
||||
};
|
||||
} catch (err) {
|
||||
try {
|
||||
await tx.rollback();
|
||||
|
||||
Reference in New Issue
Block a user