From 0a08e62a3a9c2c782fd0b86f1d9421cbd8e0f276 Mon Sep 17 00:00:00 2001 From: kittapath Date: Tue, 28 Jan 2025 12:41:10 +0700 Subject: [PATCH] no message --- src/controllers/InsigniaTypeController.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/controllers/InsigniaTypeController.ts b/src/controllers/InsigniaTypeController.ts index ef23829d..b5379eee 100644 --- a/src/controllers/InsigniaTypeController.ts +++ b/src/controllers/InsigniaTypeController.ts @@ -144,8 +144,7 @@ export class InsigniaTypeController extends Controller { @Get("active") async GetInsigniaType_Active() { const insigniaType_Active = await this.insigniaTypeRepository.find({ - select: ["id", "name", "createdAt", "lastUpdatedAt", "lastUpdateFullName", "isActive"], - where: { isActive: true }, + where: { isActive: true, insignias: { isActive: true } }, order: { name: "ASC", insignias: { level: "ASC" } }, relations: ["insignias"], });