fix: wrong field

This commit is contained in:
Methapon Metanipat 2024-08-19 13:47:03 +07:00
parent ba74eccec7
commit be28445f46

View file

@ -281,7 +281,7 @@ export class EmployeeController extends Controller {
{ lastNameEN: { contains: query }, zipCode, gender, ...filterStatus(status) },
],
AND: {
customerBranch: customerId ? { id: customerId } : undefined,
customerBranch: customerId ? { customerId: customerId } : undefined,
},
} satisfies Prisma.EmployeeWhereInput;