order list data
This commit is contained in:
parent
8d370fd487
commit
be58ab8840
1 changed files with 2 additions and 0 deletions
|
|
@ -705,6 +705,7 @@ export class AssignController extends Controller {
|
|||
const competencyData = await this.assignCompetencyRepository.find({
|
||||
select: ["competency_id", "competency_level", "competency_name", "competency_description"],
|
||||
where: { assign_id },
|
||||
order: { createdAt: "ASC" },
|
||||
});
|
||||
|
||||
const competencys = await competencyData.map((x) => ({
|
||||
|
|
@ -722,6 +723,7 @@ export class AssignController extends Controller {
|
|||
"competency_group_description",
|
||||
],
|
||||
where: { assign_id },
|
||||
order: { createdAt: "ASC" },
|
||||
});
|
||||
const competency_groups = await competencyGroupData.map((x) => ({
|
||||
id: x.competency_group_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue