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

@ -147,12 +147,8 @@ export class BloodGroupController extends Controller {
async listBloodGroup() {
const bloodGroup = await this.bloodGroupRepository.find({
select: ["id", "name", "createdAt", "lastUpdatedAt", "createdFullName", "lastUpdateFullName"],
order: { name: "ASC" },
order: { createdAt: "DESC" },
});
// if (!bloodGroup) {
// return new HttpSuccess([]);
// }
return new HttpSuccess(bloodGroup);
}
}