From 5c144ab5ed7d5547362dd042535885ae62254161 Mon Sep 17 00:00:00 2001 From: Bright Date: Mon, 5 Feb 2024 11:28:56 +0700 Subject: [PATCH] fix Get --- ...ationLevelController.ts => OrgEducationLevelController.ts} | 0 .../{GenderController.ts => OrgGenderController.ts} | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) rename src/controllers/{EducationLevelController.ts => OrgEducationLevelController.ts} (100%) rename src/controllers/{GenderController.ts => OrgGenderController.ts} (98%) diff --git a/src/controllers/EducationLevelController.ts b/src/controllers/OrgEducationLevelController.ts similarity index 100% rename from src/controllers/EducationLevelController.ts rename to src/controllers/OrgEducationLevelController.ts diff --git a/src/controllers/GenderController.ts b/src/controllers/OrgGenderController.ts similarity index 98% rename from src/controllers/GenderController.ts rename to src/controllers/OrgGenderController.ts index 5134251c..727fcc54 100644 --- a/src/controllers/GenderController.ts +++ b/src/controllers/OrgGenderController.ts @@ -38,7 +38,8 @@ export class GenderController extends Controller { * */ @Get() - async Get() { + async GetResult() { + console.log("asds") const _gender = await this.genderRepository.find({ select: ["id", "name"], }); @@ -48,6 +49,7 @@ export class GenderController extends Controller { try { return new HttpSuccess(_gender); } catch (error) { + console.log(error) return error; } }