เรียงลำดับข้อมูลหลัก #1991
This commit is contained in:
parent
6376a6ecfd
commit
f4f775b5ea
1 changed files with 8 additions and 8 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue