sort ข้อมูลหลัก

This commit is contained in:
Bright 2024-11-27 10:20:40 +07:00
parent 94f92b5c9a
commit 2df1e19dc3
13 changed files with 171 additions and 57 deletions

View file

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