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
*
*/
@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);