fix Get
This commit is contained in:
parent
0acdee9bbc
commit
5c144ab5ed
2 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue