diff --git a/src/controllers/OrganizationDotnetController.ts b/src/controllers/OrganizationDotnetController.ts index 706cb318..b5803029 100644 --- a/src/controllers/OrganizationDotnetController.ts +++ b/src/controllers/OrganizationDotnetController.ts @@ -6195,7 +6195,7 @@ export class OrganizationDotnetController extends Controller { }); return { - id: item.profileId, + id: item.id, prefix: item.prefix, firstName: item.firstName, lastName: item.lastName, diff --git a/src/migration/1767930614165-update_table_posMasterHistory.ts b/src/migration/1767930614165-update_table_posMasterHistory.ts deleted file mode 100644 index d0bec6bf..00000000 --- a/src/migration/1767930614165-update_table_posMasterHistory.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { MigrationInterface, QueryRunner } from "typeorm"; - -export class UpdateTablePosMasterHistory1767930614165 implements MigrationInterface { - name = 'UpdateTablePosMasterHistory1767930614165' - - public async up(queryRunner: QueryRunner): Promise { - await queryRunner.query(`ALTER TABLE \`posMasterHistory\` ADD \`profileId\` varchar(40) NULL COMMENT 'คีย์นอก(FK)ของตาราง profile'`); - await queryRunner.query(`ALTER TABLE \`posMasterHistory\` ADD \`rootDnaId\` varchar(40) NULL COMMENT 'dna ของตาราง orgRoot'`); - await queryRunner.query(`ALTER TABLE \`posMasterHistory\` ADD \`child1DnaId\` varchar(40) NULL COMMENT 'dna ของตาราง orgChild1'`); - await queryRunner.query(`ALTER TABLE \`posMasterHistory\` ADD \`child2DnaId\` varchar(40) NULL COMMENT 'dna ของตาราง orgChild2'`); - await queryRunner.query(`ALTER TABLE \`posMasterHistory\` ADD \`child3DnaId\` varchar(40) NULL COMMENT 'dna ของตาราง orgChild3'`); - await queryRunner.query(`ALTER TABLE \`posMasterHistory\` ADD \`child4DnaId\` varchar(40) NULL COMMENT 'dna ของตาราง orgChild4'`); - } - - public async down(queryRunner: QueryRunner): Promise { - } - -}