ประเภทประการเกียรติ

This commit is contained in:
kittapath 2025-01-28 12:35:06 +07:00
parent 45c7a179c5
commit 087098f8b2
4 changed files with 37 additions and 1 deletions

View file

@ -146,7 +146,8 @@ export class InsigniaTypeController extends Controller {
const insigniaType_Active = await this.insigniaTypeRepository.find({
select: ["id", "name", "createdAt", "lastUpdatedAt", "lastUpdateFullName", "isActive"],
where: { isActive: true },
order: { name: "ASC" },
order: { name: "ASC", insignias: { level: "ASC" } },
relations: ["insignias"],
});
return new HttpSuccess(insigniaType_Active);
}