From 1f0c6cb192132ac2d43a5a08b37ea5c9fd38a387 Mon Sep 17 00:00:00 2001 From: kittapath Date: Thu, 12 Dec 2024 15:21:55 +0700 Subject: [PATCH] find profile by nodeId --- .../OrganizationDotnetController.ts | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/controllers/OrganizationDotnetController.ts b/src/controllers/OrganizationDotnetController.ts index 341d4cc2..c7e3bfd9 100644 --- a/src/controllers/OrganizationDotnetController.ts +++ b/src/controllers/OrganizationDotnetController.ts @@ -2752,8 +2752,15 @@ export class OrganizationDotnetController extends Controller { * @summary 5. เอารายชื่อคนที่มีการ ,map keycloak id แล้ว * */ - @Get("keycloak-all-officer") - async GetProfileWithKeycloakAllOfficer() { + @Post("keycloak-all-officer") + async PostProfileWithKeycloakAllOfficer( + @Request() req: RequestWithUser, + @Body() + body: { + node: string; + nodeId: string; + }, + ) { const profile = await this.profileRepo.find({ where: { keycloak: Not(IsNull()) || Not(""), isLeave: false }, relations: [ @@ -2818,8 +2825,15 @@ export class OrganizationDotnetController extends Controller { * @summary 5. เอารายชื่อคนที่มีการ ,map keycloak id แล้ว * */ - @Get("keycloak-all-employee") - async GetProfileWithKeycloakAllEmployee() { + @Post("keycloak-all-employee") + async PostProfileWithKeycloakAllEmployee( + @Request() req: RequestWithUser, + @Body() + body: { + node: string; + nodeId: string; + }, + ) { const profile = await this.profileEmpRepo.find({ where: { keycloak: Not(IsNull()) || Not(""), isLeave: false }, relations: [