ปรับ relation
This commit is contained in:
parent
bfe7daa63d
commit
7fca1e320b
4 changed files with 25 additions and 6 deletions
|
|
@ -178,6 +178,25 @@ export class ChangePositionController extends Controller {
|
|||
return new HttpSuccess({ data: changePosition, total });
|
||||
}
|
||||
|
||||
/**
|
||||
* API รายการรายชื่อผู้ที่ย้ายสับเปลี่ยนตำแหน่ง สถานะเลือกตำแหน่งแล้ว
|
||||
*
|
||||
* @summary รายการรายชื่อผู้ที่ย้ายสับเปลี่ยนตำแหน่ง สถานะเลือกตำแหน่งแล้ว (ADMIN)
|
||||
*
|
||||
*/
|
||||
@Get("pending")
|
||||
async getProfilePending() {
|
||||
const profiles = await this.changePositionRepository.find({
|
||||
relations: ["profileChangePosition"],
|
||||
where: {
|
||||
profileChangePosition: {
|
||||
status: "PENDING"
|
||||
}
|
||||
}
|
||||
});
|
||||
return new HttpSuccess(profiles);
|
||||
}
|
||||
|
||||
/**
|
||||
* API รายละเอียดรอบย้ายสับเปลี่ยนตำแหน่ง
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue