diff --git a/src/controllers/ProfileAbilityController.ts b/src/controllers/ProfileAbilityController.ts index df6fdd0c..161f8ae8 100644 --- a/src/controllers/ProfileAbilityController.ts +++ b/src/controllers/ProfileAbilityController.ts @@ -47,7 +47,6 @@ export class ProfileAbilityController extends Controller { createdFullName: "test bar", lastUpdateFullName: "test bar", profileId: "1526d9d3-d8b1-43ab-81b5-a84dfbe99201", - isActive: true, remark: "ต้องส่งให้ทันก่อนวันที่ 15 มีนาคม", detail: "-", reference: "-", @@ -78,7 +77,6 @@ export class ProfileAbilityController extends Controller { lastUpdateUserId: "00000000-0000-0000-0000-000000000000", createdFullName: "string", lastUpdateFullName: "test bar", - isActive: true, remark: "ต้องส่งให้ทันก่อนวันที่ 15 มีนาคม", detail: "ด่วน", reference: "-", @@ -95,7 +93,6 @@ export class ProfileAbilityController extends Controller { lastUpdateUserId: "00000000-0000-0000-0000-000000000000", createdFullName: "string", lastUpdateFullName: "test bar", - isActive: true, remark: "ต้องส่งให้ทันก่อนวันที่ 15 มีนาคม", detail: "ด่วนมากสุด", reference: "-", diff --git a/src/controllers/ProfileAssessmentsController.ts b/src/controllers/ProfileAssessmentsController.ts index 992770c8..e261083c 100644 --- a/src/controllers/ProfileAssessmentsController.ts +++ b/src/controllers/ProfileAssessmentsController.ts @@ -53,7 +53,6 @@ export class ProfileAssessmentsController extends Controller { createdFullName: "test bar", lastUpdateFullName: "test bar", profileId: "1526d9d3-d8b1-43ab-81b5-a84dfbe99201", - isActive: true, name: "สาวิตรี ศรีสมัย", date: "2024-03-13T03:55:42.000Z", point1: 0, @@ -86,7 +85,6 @@ export class ProfileAssessmentsController extends Controller { lastUpdateUserId: "00000000-0000-0000-0000-000000000000", createdFullName: "string", lastUpdateFullName: "test bar", - isActive: true, name: "สาวิตรี ศรีสมัย", date: "2024-03-13T03:55:42.000Z", point1: 0, @@ -105,7 +103,6 @@ export class ProfileAssessmentsController extends Controller { lastUpdateUserId: "00000000-0000-0000-0000-000000000000", createdFullName: "string", lastUpdateFullName: "test bar", - isActive: true, name: "สาวิตรี ศรีสมัย", date: "2024-03-13T03:55:42.000Z", point1: 50, diff --git a/src/controllers/ProfileCertificateController.ts b/src/controllers/ProfileCertificateController.ts index 567dbed2..c21d8db0 100644 --- a/src/controllers/ProfileCertificateController.ts +++ b/src/controllers/ProfileCertificateController.ts @@ -48,7 +48,6 @@ export class ProfileCertificateController extends Controller { lastUpdateFullName: "สาวิตรี ศรีสมัย", profileId: "1526d9d3-d8b1-43ab-81b5-a84dfbe99201", expireDate: "2024-03-12T10:01:48.000Z", - isActive: true, issueDate: "2024-03-12T10:01:48.000Z", certificateNo: "string", certificateType: "string", @@ -75,7 +74,6 @@ export class ProfileCertificateController extends Controller { createdFullName: "string", lastUpdateFullName: "สาวิตรี ศรีสมัย", expireDate: "2024-03-12T10:03:05.000Z", - isActive: true, issueDate: "2024-03-12T10:03:05.000Z", certificateNo: "no", certificateType: "type", @@ -91,7 +89,6 @@ export class ProfileCertificateController extends Controller { createdFullName: "สาวิตรี ศรีสมัย", lastUpdateFullName: "สาวิตรี ศรีสมัย", expireDate: "2024-03-12T10:01:48.000Z", - isActive: true, issueDate: "2024-03-12T10:01:48.000Z", certificateNo: "string", certificateType: "string", diff --git a/src/controllers/ProfileChangeNameController.ts b/src/controllers/ProfileChangeNameController.ts index ba79109a..7cbad6cb 100644 --- a/src/controllers/ProfileChangeNameController.ts +++ b/src/controllers/ProfileChangeNameController.ts @@ -40,7 +40,6 @@ export class ProfileChangeNameController extends Controller { result: [ { id: "debfa8a7-83fb-4801-a940-8ae74e7638d3", - isActive: true, prefix: "string", firstName: "string", lastName: "string", @@ -51,7 +50,7 @@ export class ProfileChangeNameController extends Controller { public async getChangeName(@Path() profileId: string) { const lists = await this.changeNameRepository.find({ where: { profileId: profileId }, - select: ["id", "isActive", "prefix", "firstName", "lastName", "status"], + select: ["id", "prefix", "firstName", "lastName", "status"], }); return new HttpSuccess(lists); } @@ -63,7 +62,6 @@ export class ProfileChangeNameController extends Controller { result: [ { id: "debfa8a7-83fb-4801-a940-8ae74e7638d3", - isActive: true, prefix: "string", firstName: "string", lastName: "string", @@ -73,7 +71,6 @@ export class ProfileChangeNameController extends Controller { }, { id: "debfa8a7-83fb-4801-a940-8ae74e7638d3", - isActive: true, prefix: "string", firstName: "string", lastName: "string", @@ -86,16 +83,7 @@ export class ProfileChangeNameController extends Controller { public async changeNameHistory(@Path() changeNameId: string) { const record = await this.changeNameHistoryRepository.find({ where: { profileChangeNameId: changeNameId }, - select: [ - "id", - "isActive", - "prefix", - "firstName", - "lastName", - "status", - "createdFullName", - "createdAt", - ], + select: ["id", "prefix", "firstName", "lastName", "status", "createdFullName", "createdAt"], order: { createdAt: "DESC" }, }); return new HttpSuccess(record); diff --git a/src/controllers/ProfileDisciplineController.ts b/src/controllers/ProfileDisciplineController.ts index 9a36c40c..6f904056 100644 --- a/src/controllers/ProfileDisciplineController.ts +++ b/src/controllers/ProfileDisciplineController.ts @@ -40,7 +40,6 @@ export class ProfileDisciplineController extends Controller { result: [ { id: "debfa8a7-83fb-4801-a940-8ae74e7638d3", - isActive: true, date: "2024-03-12T10:09:47.000Z", level: "string", detail: "string", @@ -53,16 +52,7 @@ export class ProfileDisciplineController extends Controller { public async getDiscipline(@Path() profileId: string) { const lists = await this.disciplineRepository.find({ where: { profileId: profileId }, - select: [ - "id", - "isActive", - "date", - "level", - "detail", - "unStigma", - "refCommandNo", - "refCommandDate", - ], + select: ["id", "date", "level", "detail", "unStigma", "refCommandNo", "refCommandDate"], }); return new HttpSuccess(lists); } @@ -74,7 +64,6 @@ export class ProfileDisciplineController extends Controller { result: [ { id: "debfa8a7-83fb-4801-a940-8ae74e7638d3", - isActive: true, date: "2024-03-12T10:09:47.000Z", level: "string", detail: "string", @@ -84,7 +73,6 @@ export class ProfileDisciplineController extends Controller { }, { id: "ba0e2f82-014e-46c6-8b82-a7c28eb5325f", - isActive: true, date: "2024-03-12T10:09:47.000Z", level: "string", detail: "string", @@ -97,17 +85,8 @@ export class ProfileDisciplineController extends Controller { public async disciplineHistory(@Path() disciplineId: string) { const record = await this.disciplineHistoryRepository.find({ where: { profileDisciplineId: disciplineId }, - select: [ - "id", - "isActive", - "date", - "level", - "detail", - "unStigma", - "refCommandNo", - "refCommandDate", - ], - order: { createdAt: "DESC" } + select: ["id", "date", "level", "detail", "unStigma", "refCommandNo", "refCommandDate"], + order: { createdAt: "DESC" }, }); return new HttpSuccess(record); } diff --git a/src/controllers/ProfileDutyController.ts b/src/controllers/ProfileDutyController.ts index d13a36d9..a690883b 100644 --- a/src/controllers/ProfileDutyController.ts +++ b/src/controllers/ProfileDutyController.ts @@ -36,7 +36,6 @@ export class ProfileDutyController extends Controller { result: [ { id: "debfa8a7-83fb-4801-a940-8ae74e7638d3", - isActive: true, dateStart: "2024-03-12T10:09:47.000Z", dateEnd: "string", reference: "string", @@ -51,7 +50,6 @@ export class ProfileDutyController extends Controller { where: { profileId: profileId }, select: [ "id", - "isActive", "dateStart", "dateEnd", "reference", @@ -70,7 +68,6 @@ export class ProfileDutyController extends Controller { result: [ { id: "debfa8a7-83fb-4801-a940-8ae74e7638d3", - isActive: true, dateStart: "2024-03-12T10:09:47.000Z", dateEnd: "string", reference: "string", @@ -80,7 +77,6 @@ export class ProfileDutyController extends Controller { }, { id: "debfa8a7-83fb-4801-a940-8ae74e7638d3", - isActive: true, dateStart: "2024-03-12T10:09:47.000Z", dateEnd: "string", reference: "string", @@ -95,7 +91,6 @@ export class ProfileDutyController extends Controller { where: { profileDutyId: dutyId }, select: [ "id", - "isActive", "dateStart", "dateEnd", "reference", diff --git a/src/controllers/ProfileFamilyHistoryController.ts b/src/controllers/ProfileFamilyHistoryController.ts index 7a112091..aed19573 100644 --- a/src/controllers/ProfileFamilyHistoryController.ts +++ b/src/controllers/ProfileFamilyHistoryController.ts @@ -48,7 +48,6 @@ export class ProfileFamilyHistoryController extends Controller { lastUpdateUserId: "59134ef9-9e62-41d0-aac5-339be727f2b0", createdFullName: "สาวิตรี ศรีสมัย", lastUpdateFullName: "สาวิตรี ศรีสมัย", - isActive: true, couple: true, couplePrefix: "string", coupleFirstName: "string", @@ -79,7 +78,6 @@ export class ProfileFamilyHistoryController extends Controller { lastUpdateUserId: "59134ef9-9e62-41d0-aac5-339be727f2b0", createdFullName: "สาวิตรี ศรีสมัย", lastUpdateFullName: "สาวิตรี ศรีสมัย", - isActive: true, childrenCareer: "string", childrenFirstName: "string", childrenLastName: "string", @@ -124,7 +122,6 @@ export class ProfileFamilyHistoryController extends Controller { lastUpdateUserId: "59134ef9-9e62-41d0-aac5-339be727f2b0", createdFullName: "สาวิตรี ศรีสมัย", lastUpdateFullName: "สาวิตรี ศรีสมัย", - isActive: true, couple: true, couplePrefix: "string", coupleFirstName: "string", @@ -155,7 +152,6 @@ export class ProfileFamilyHistoryController extends Controller { lastUpdateUserId: "59134ef9-9e62-41d0-aac5-339be727f2b0", createdFullName: "สาวิตรี ศรีสมัย", lastUpdateFullName: "สาวิตรี ศรีสมัย", - isActive: false, childrenCareer: "hey", childrenFirstName: "hey", childrenLastName: "hey", @@ -174,7 +170,6 @@ export class ProfileFamilyHistoryController extends Controller { lastUpdateUserId: "59134ef9-9e62-41d0-aac5-339be727f2b0", createdFullName: "สาวิตรี ศรีสมัย", lastUpdateFullName: "สาวิตรี ศรีสมัย", - isActive: false, childrenCareer: "ay", childrenFirstName: "ay", childrenLastName: "ay", @@ -195,7 +190,6 @@ export class ProfileFamilyHistoryController extends Controller { lastUpdateUserId: "59134ef9-9e62-41d0-aac5-339be727f2b0", createdFullName: "สาวิตรี ศรีสมัย", lastUpdateFullName: "สาวิตรี ศรีสมัย", - isActive: true, couple: true, couplePrefix: "string", coupleFirstName: "string", diff --git a/src/controllers/ProfileHonorController.ts b/src/controllers/ProfileHonorController.ts index 96c76d86..9a03daa3 100644 --- a/src/controllers/ProfileHonorController.ts +++ b/src/controllers/ProfileHonorController.ts @@ -43,7 +43,6 @@ export class ProfileHonorController extends Controller { createdFullName: "สาวิตรี ศรีสมัย", lastUpdateFullName: "สาวิตรี ศรีสมัย", profileId: "1526d9d3-d8b1-43ab-81b5-a84dfbe99201", - isActive: true, detail: "string", issueDate: "2024-03-12T10:09:47.000Z", issuer: "string", @@ -71,7 +70,6 @@ export class ProfileHonorController extends Controller { lastUpdateUserId: "00000000-0000-0000-0000-000000000000", createdFullName: "string", lastUpdateFullName: "สาวิตรี ศรีสมัย", - isActive: true, detail: "detail", issueDate: "2024-03-12T10:10:31.000Z", issuer: "issuer", @@ -88,7 +86,6 @@ export class ProfileHonorController extends Controller { lastUpdateUserId: "59134ef9-9e62-41d0-aac5-339be727f2b0", createdFullName: "สาวิตรี ศรีสมัย", lastUpdateFullName: "สาวิตรี ศรีสมัย", - isActive: true, detail: "string", issueDate: "2024-03-12T10:09:47.000Z", issuer: "string", diff --git a/src/controllers/ProfileInsigniaController.ts b/src/controllers/ProfileInsigniaController.ts index d1d396b7..04adb1b2 100644 --- a/src/controllers/ProfileInsigniaController.ts +++ b/src/controllers/ProfileInsigniaController.ts @@ -47,7 +47,6 @@ export class ProfileInsigniaController extends Controller { createdFullName: "สาวิตรี ศรีสมัย", lastUpdateFullName: "สาวิตรี ศรีสมัย", profileId: "1526d9d3-d8b1-43ab-81b5-a84dfbe99201", - isActive: true, year: 0, no: "string", volume: "string", @@ -90,7 +89,6 @@ export class ProfileInsigniaController extends Controller { lastUpdateUserId: "00000000-0000-0000-0000-000000000000", createdFullName: "string", lastUpdateFullName: "สาวิตรี ศรีสมัย", - isActive: true, year: 0, no: "no", volume: "volume", @@ -115,7 +113,6 @@ export class ProfileInsigniaController extends Controller { lastUpdateUserId: "59134ef9-9e62-41d0-aac5-339be727f2b0", createdFullName: "สาวิตรี ศรีสมัย", lastUpdateFullName: "สาวิตรี ศรีสมัย", - isActive: true, year: 0, no: "string", volume: "string", diff --git a/src/controllers/ProfileNopaidController.ts b/src/controllers/ProfileNopaidController.ts index a0bd33d3..65ec27ec 100644 --- a/src/controllers/ProfileNopaidController.ts +++ b/src/controllers/ProfileNopaidController.ts @@ -36,7 +36,6 @@ export class ProfileNopaidController extends Controller { result: [ { id: "debfa8a7-83fb-4801-a940-8ae74e7638d3", - isActive: true, date: "2024-03-12T10:09:47.000Z", reference: "string", detail: "string", @@ -59,7 +58,6 @@ export class ProfileNopaidController extends Controller { result: [ { id: "debfa8a7-83fb-4801-a940-8ae74e7638d3", - isActive: true, date: "2024-03-12T10:09:47.000Z", reference: "string", detail: "string", @@ -68,7 +66,6 @@ export class ProfileNopaidController extends Controller { }, { id: "debfa8a7-83fb-4801-a940-8ae74e7638d3", - isActive: true, date: "2024-03-12T10:09:47.000Z", reference: "string", detail: "string",