updated list appoint

This commit is contained in:
Warunee Tamkoo 2024-10-18 09:36:20 +07:00
parent d93f0ea536
commit ec6d296ff5

View file

@ -57,11 +57,11 @@ export class AppointController extends Controller {
* @summary * @summary
* *
*/ */
@Get("list") @Get("list/{id}")
async GetListCommand(@Request() request: RequestWithUser) { async GetListCommand(@Request() request: RequestWithUser, @Path() id: string) {
const appoint = await this.appointRepository.find({ const appoint = await this.appointRepository.find({
relations: ["directors"], relations: ["directors"],
where: { status: "DONE" }, where: { profileId: id, status: "DONE" },
}); });
return new HttpSuccess(appoint); return new HttpSuccess(appoint);