fix: transaction ended before create
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s
This commit is contained in:
parent
e8278b6af3
commit
a33983c530
1 changed files with 1 additions and 1 deletions
|
|
@ -304,7 +304,7 @@ export class ProductController extends Controller {
|
|||
|
||||
const listId = await flowAccount.createProducts(body);
|
||||
|
||||
return await prisma.product.create({
|
||||
return await tx.product.create({
|
||||
include: {
|
||||
createdBy: true,
|
||||
updatedBy: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue