This commit is contained in:
seb
2026-07-31 05:43:41 +02:00
parent 09c7a8bc74
commit a57e81fe30
9 changed files with 204 additions and 122 deletions

View File

@@ -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();