Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 58s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 58s
This commit is contained in:
commit
2462128f22
2 changed files with 11 additions and 9 deletions
|
|
@ -36,14 +36,14 @@ export class MainController extends Controller {
|
|||
*/
|
||||
@Get("main/person")
|
||||
async getMainPerson() {
|
||||
const bloodGroups = await this.bloodGroupRepo.find();
|
||||
const genders = await this.genderRepo.find();
|
||||
const prefixs = await this.prefixeRepo.find();
|
||||
const relationships = await this.relationshipRepo.find();
|
||||
const religions = await this.religionRepo.find();
|
||||
const rank = await this.rankRepo.find();
|
||||
const educationLevels = await this.educationLevelRepo.find();
|
||||
const provinces = await this.provinceRepo.find();
|
||||
const bloodGroups = await this.bloodGroupRepo.find({order: { name: "ASC" }});
|
||||
const genders = await this.genderRepo.find({order: { name: "ASC" }});
|
||||
const prefixs = await this.prefixeRepo.find({order: { name: "ASC" }});
|
||||
const relationships = await this.relationshipRepo.find({order: { name: "ASC" }});
|
||||
const religions = await this.religionRepo.find({order: { name: "ASC" }});
|
||||
const rank = await this.rankRepo.find({order: { name: "ASC" }});
|
||||
const educationLevels = await this.educationLevelRepo.find({order: { rank: "ASC" }});
|
||||
const provinces = await this.provinceRepo.find({order: { name: "ASC" }});
|
||||
|
||||
return new HttpSuccess({
|
||||
bloodGroups,
|
||||
|
|
|
|||
|
|
@ -47,7 +47,9 @@ export const AppDataSource = new DataSource({
|
|||
logging: true,
|
||||
// timezone: "Z",
|
||||
entities:
|
||||
process.env.NODE_ENV !== "production" ? ["src/entities/*.ts"] : ["dist/entities/*{.ts,.js}"],
|
||||
process.env.NODE_ENV !== "production"
|
||||
? ["src/entities/**/*.ts"]
|
||||
: ["dist/entities/**/*{.ts,.js}"],
|
||||
migrations:
|
||||
process.env.NODE_ENV !== "production"
|
||||
? ["src/migration/**/*.ts"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue