sort ข้อมูลหลัก
This commit is contained in:
parent
94f92b5c9a
commit
2df1e19dc3
13 changed files with 171 additions and 57 deletions
|
|
@ -146,12 +146,8 @@ export class ReligionController extends Controller {
|
|||
async listReligion() {
|
||||
const religion = await this.religionRepository.find({
|
||||
select: ["id", "name", "createdAt", "lastUpdatedAt", "createdFullName", "lastUpdateFullName"],
|
||||
order: { name: "ASC" },
|
||||
order: { createdAt: "DESC" },
|
||||
});
|
||||
|
||||
// if (!religion) {
|
||||
// return new HttpSuccess([]);
|
||||
// }
|
||||
return new HttpSuccess(religion);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue