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);