เรียงลำดับข้อมูลหลัก #1991

This commit is contained in:
harid 2025-11-14 17:33:37 +07:00
parent 6376a6ecfd
commit f4f775b5ea

View file

@ -36,14 +36,14 @@ export class MainController extends Controller {
*/ */
@Get("main/person") @Get("main/person")
async getMainPerson() { async getMainPerson() {
const bloodGroups = await this.bloodGroupRepo.find(); const bloodGroups = await this.bloodGroupRepo.find({order: { name: "ASC" }});
const genders = await this.genderRepo.find(); const genders = await this.genderRepo.find({order: { name: "ASC" }});
const prefixs = await this.prefixeRepo.find(); const prefixs = await this.prefixeRepo.find({order: { name: "ASC" }});
const relationships = await this.relationshipRepo.find(); const relationships = await this.relationshipRepo.find({order: { name: "ASC" }});
const religions = await this.religionRepo.find(); const religions = await this.religionRepo.find({order: { name: "ASC" }});
const rank = await this.rankRepo.find(); const rank = await this.rankRepo.find({order: { name: "ASC" }});
const educationLevels = await this.educationLevelRepo.find(); const educationLevels = await this.educationLevelRepo.find({order: { rank: "ASC" }});
const provinces = await this.provinceRepo.find(); const provinces = await this.provinceRepo.find({order: { name: "ASC" }});
return new HttpSuccess({ return new HttpSuccess({
bloodGroups, bloodGroups,