updated list appoint
This commit is contained in:
parent
d93f0ea536
commit
ec6d296ff5
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue