This commit is contained in:
Bright 2024-02-05 11:28:56 +07:00
parent 0acdee9bbc
commit 5c144ab5ed
2 changed files with 3 additions and 1 deletions

View file

@ -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;
}
}