feat: count employee
This commit is contained in:
parent
e82f3f37b2
commit
c079f43e8d
1 changed files with 7 additions and 0 deletions
|
|
@ -200,6 +200,13 @@ type EmployeeUpdate = {
|
|||
@Tags("Employee")
|
||||
@Security("keycloak")
|
||||
export class EmployeeController extends Controller {
|
||||
@Get("stats")
|
||||
async getEmployeeStats(@Query() customerBranchId?: string) {
|
||||
return await prisma.employee.count({
|
||||
where: { customerBranchId },
|
||||
});
|
||||
}
|
||||
|
||||
@Get()
|
||||
async list(
|
||||
@Query() zipCode?: string,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue