From ec6d296ff54495b7cb4519725d1e9690d7b1afec Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Fri, 18 Oct 2024 09:36:20 +0700 Subject: [PATCH] updated list appoint --- src/controllers/AppointController.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/AppointController.ts b/src/controllers/AppointController.ts index 27aaf1a..df96c49 100644 --- a/src/controllers/AppointController.ts +++ b/src/controllers/AppointController.ts @@ -57,11 +57,11 @@ export class AppointController extends Controller { * @summary รายการแต่งตั้งคณะกรรมการฯ ที่ออกคำสั่งแล้ว * */ - @Get("list") - async GetListCommand(@Request() request: RequestWithUser) { + @Get("list/{id}") + async GetListCommand(@Request() request: RequestWithUser, @Path() id: string) { const appoint = await this.appointRepository.find({ relations: ["directors"], - where: { status: "DONE" }, + where: { profileId: id, status: "DONE" }, }); return new HttpSuccess(appoint);