fix: error when no branch is found
This commit is contained in:
parent
123a6fefb7
commit
c45db7332d
1 changed files with 1 additions and 1 deletions
|
|
@ -570,7 +570,7 @@ export class QuotationController extends Controller {
|
|||
const [customerBranch, employee, product, work, service] = await prisma.$transaction(
|
||||
async (tx) =>
|
||||
await Promise.all([
|
||||
tx.customerBranch.findUnique({
|
||||
tx.customerBranch.findFirst({
|
||||
include: {
|
||||
customer: {
|
||||
include: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue