From 28122752fa0d4084e154d6f5fe7f2864e61ec92d Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Wed, 10 Jul 2024 10:16:56 +0700 Subject: [PATCH] feat: add count branch --- src/controllers/branch-controller.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controllers/branch-controller.ts b/src/controllers/branch-controller.ts index 5c4f7a7..a4b5f10 100644 --- a/src/controllers/branch-controller.ts +++ b/src/controllers/branch-controller.ts @@ -187,6 +187,9 @@ export class BranchController extends Controller { subDistrict: true, }, }, + _count: { + select: { branch: true }, + }, createdBy: true, updatedBy: true, },