fix: optional query

This commit is contained in:
Methapon2001 2024-04-05 18:10:11 +07:00
parent 5bafff7482
commit a69738549b

View file

@ -130,7 +130,7 @@ export class BranchController extends Controller {
}
@Get("{branchId}")
async getBranchById(@Path() branchId: string, @Query() includeSubBranch: boolean) {
async getBranchById(@Path() branchId: string, @Query() includeSubBranch?: boolean) {
const record = await prisma.branch.findFirst({
include: {
province: true,