diff --git a/src/controllers/BloodGroupController.ts b/src/controllers/BloodGroupController.ts index 4b844438..550400c2 100644 --- a/src/controllers/BloodGroupController.ts +++ b/src/controllers/BloodGroupController.ts @@ -145,9 +145,9 @@ export class BloodGroupController extends Controller { order: { createdAt: "ASC" }, }); - if (!bloodGroup) { - return new HttpSuccess([]); - } + // if (!bloodGroup) { + // return new HttpSuccess([]); + // } return new HttpSuccess(bloodGroup); } } diff --git a/src/controllers/EducationLevelController.ts b/src/controllers/EducationLevelController.ts index 600fb37e..217b8f12 100644 --- a/src/controllers/EducationLevelController.ts +++ b/src/controllers/EducationLevelController.ts @@ -160,9 +160,9 @@ export class EducationLevelController extends Controller { order: { createdAt: "ASC" }, }); - if (!educationLevel) { - return new HttpSuccess([]); - } + // if (!educationLevel) { + // return new HttpSuccess([]); + // } return new HttpSuccess(educationLevel); } } diff --git a/src/controllers/GenderController.ts b/src/controllers/GenderController.ts index 3d31db6d..6959e040 100644 --- a/src/controllers/GenderController.ts +++ b/src/controllers/GenderController.ts @@ -44,9 +44,9 @@ export class GenderController extends Controller { select: ["id", "name", "createdAt", "lastUpdatedAt", "createdFullName", "lastUpdateFullName"], order: { createdAt: "ASC" }, }); - if (!_gender) { - return new HttpSuccess([]); - } + // if (!_gender) { + // return new HttpSuccess([]); + // } return new HttpSuccess(_gender); } diff --git a/src/controllers/OrganizationController.ts b/src/controllers/OrganizationController.ts index 107d7fc2..d43499c0 100644 --- a/src/controllers/OrganizationController.ts +++ b/src/controllers/OrganizationController.ts @@ -67,9 +67,9 @@ export class OrganizationController extends Controller { ], order: { orgRevisionCreatedAt: "DESC" }, }); - if (!orgRevision) { - return new HttpSuccess([]); - } + // if (!orgRevision) { + // return new HttpSuccess([]); + // } const mapOrgRevisions = orgRevision.map((revision) => ({ orgRevisionId: revision.id, orgRevisionName: revision.orgRevisionName, diff --git a/src/controllers/PosExecutiveController.ts b/src/controllers/PosExecutiveController.ts index 5aaaa7ff..ad62da32 100644 --- a/src/controllers/PosExecutiveController.ts +++ b/src/controllers/PosExecutiveController.ts @@ -152,9 +152,9 @@ export class PosExecutiveController extends Controller { const posExecutive = await this.posExecutiveRepository.find({ select: ["id", "posExecutiveName", "posExecutivePriority"], }); - if (!posExecutive) { - return new HttpSuccess([]); - } + // if (!posExecutive) { + // return new HttpSuccess([]); + // } return new HttpSuccess(posExecutive); } } diff --git a/src/controllers/PosLevelController.ts b/src/controllers/PosLevelController.ts index d111615a..e68abd07 100644 --- a/src/controllers/PosLevelController.ts +++ b/src/controllers/PosLevelController.ts @@ -247,9 +247,9 @@ export class PosLevelController extends Controller { select: ["id", "posLevelName", "posLevelRank", "posLevelAuthority", "posTypeId"], relations: ["posType"], }); - if (!posLevel) { - return new HttpSuccess([]); - } + // if (!posLevel) { + // return new HttpSuccess([]); + // } const mapPosLevel = posLevel.map((item) => ({ id: item.id, posLevelName: item.posLevelName, diff --git a/src/controllers/PosTypeController.ts b/src/controllers/PosTypeController.ts index c5928762..9cc1b99d 100644 --- a/src/controllers/PosTypeController.ts +++ b/src/controllers/PosTypeController.ts @@ -217,9 +217,9 @@ export class PosTypeController extends Controller { select: ["id", "posTypeName", "posTypeRank"], relations: ["posLevels"], }); - if (!posType) { - return new HttpSuccess([]); - } + // if (!posType) { + // return new HttpSuccess([]); + // } const mapPosType = posType.map((item) => ({ id: item.id, posTypeName: item.posTypeName, diff --git a/src/controllers/PrefixController.ts b/src/controllers/PrefixController.ts index 5d5423b6..27941f43 100644 --- a/src/controllers/PrefixController.ts +++ b/src/controllers/PrefixController.ts @@ -43,9 +43,9 @@ export class PrefixController extends Controller { select: ["id", "name", "createdAt", "lastUpdatedAt", "createdFullName", "lastUpdateFullName"], order: { createdAt: "ASC" }, }); - if (!_prefix) { - return new HttpSuccess([]); - } + // if (!_prefix) { + // return new HttpSuccess([]); + // } return new HttpSuccess(_prefix); } diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index 70a768f2..3719744f 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -271,9 +271,9 @@ export class ProfileController extends Controller { return new HttpSuccess({ data: formattedData, total: formattedData.length }); } - if (!profile) { - return new HttpSuccess([]); - } + // if (!profile) { + // return new HttpSuccess([]); + // } const formattedData = profile.map((item) => ({ id: item.id, diff --git a/src/controllers/ProfileSalaryController.ts b/src/controllers/ProfileSalaryController.ts index 566c8310..3b65100f 100644 --- a/src/controllers/ProfileSalaryController.ts +++ b/src/controllers/ProfileSalaryController.ts @@ -142,9 +142,9 @@ export class ProfileSalaryController extends Controller { // order: { createdAt: "ASC" }, }); - if (!profileSalary) { - return new HttpSuccess([]); - } + // if (!profileSalary) { + // return new HttpSuccess([]); + // } return new HttpSuccess(profileSalary); } } diff --git a/src/controllers/RankController.ts b/src/controllers/RankController.ts index 9ee26055..2e147a79 100644 --- a/src/controllers/RankController.ts +++ b/src/controllers/RankController.ts @@ -144,9 +144,9 @@ export class RankController extends Controller { order: { createdAt: "ASC" }, }); - if (!rank) { - return new HttpSuccess([]); - } + // if (!rank) { + // return new HttpSuccess([]); + // } return new HttpSuccess(rank); } } diff --git a/src/controllers/RelationshipController.ts b/src/controllers/RelationshipController.ts index 8a2b99f3..81baef95 100644 --- a/src/controllers/RelationshipController.ts +++ b/src/controllers/RelationshipController.ts @@ -143,9 +143,9 @@ export class RelationshipController extends Controller { select: ["id", "name", "createdAt", "lastUpdatedAt", "createdFullName", "lastUpdateFullName"], order: { createdAt: "ASC" }, }); - if (!relationship) { - return new HttpSuccess([]); - } + // if (!relationship) { + // return new HttpSuccess([]); + // } return new HttpSuccess(relationship); } } diff --git a/src/controllers/ReligionController.ts b/src/controllers/ReligionController.ts index 204f919c..5bfea001 100644 --- a/src/controllers/ReligionController.ts +++ b/src/controllers/ReligionController.ts @@ -144,9 +144,9 @@ export class ReligionController extends Controller { order: { createdAt: "ASC" }, }); - if (!religion) { - return new HttpSuccess([]); - } + // if (!religion) { + // return new HttpSuccess([]); + // } return new HttpSuccess(religion); } }