fix: optional query
This commit is contained in:
parent
5bafff7482
commit
a69738549b
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue