sort ข้อมูลหลัก
This commit is contained in:
parent
94f92b5c9a
commit
2df1e19dc3
13 changed files with 171 additions and 57 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue