Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 57s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 57s
This commit is contained in:
commit
cb8b2cee28
4 changed files with 27 additions and 7 deletions
|
|
@ -66,9 +66,7 @@ async function main() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// const cronTime_Oct = "0 0 1 10 *";
|
const cronTime_Oct = "0 0 1 10 *";
|
||||||
// Test #1912
|
|
||||||
const cronTime_Oct = "0 0 4 11 *";
|
|
||||||
cron.schedule(cronTime_Oct, async () => {
|
cron.schedule(cronTime_Oct, async () => {
|
||||||
try {
|
try {
|
||||||
const commandController = new CommandController();
|
const commandController = new CommandController();
|
||||||
|
|
|
||||||
|
|
@ -3704,7 +3704,9 @@ export class PositionController extends Controller {
|
||||||
dataMaster.current_holderId = _null;
|
dataMaster.current_holderId = _null;
|
||||||
}
|
}
|
||||||
await this.posMasterRepository.save(dataMaster, { data: request });
|
await this.posMasterRepository.save(dataMaster, { data: request });
|
||||||
await CreatePosMasterHistoryOfficer(dataMaster.id, request);
|
if (chkRevision?.orgRevisionIsCurrent) {
|
||||||
|
await CreatePosMasterHistoryOfficer(dataMaster.id, request);
|
||||||
|
}
|
||||||
setLogDataDiff(request, { before, after: dataMaster });
|
setLogDataDiff(request, { before, after: dataMaster });
|
||||||
|
|
||||||
return new HttpSuccess();
|
return new HttpSuccess();
|
||||||
|
|
|
||||||
|
|
@ -6,17 +6,17 @@ import { ApiName } from "./ApiName";
|
||||||
@Entity("apiHistory")
|
@Entity("apiHistory")
|
||||||
export class ApiHistory extends EntityBase {
|
export class ApiHistory extends EntityBase {
|
||||||
@Column({
|
@Column({
|
||||||
|
type: 'longtext',
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "header",
|
comment: "header",
|
||||||
length: 255,
|
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
headerApi: string;
|
headerApi: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
|
type: 'longtext',
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "token",
|
comment: "token",
|
||||||
length: 255,
|
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
tokenApi: string;
|
tokenApi: string;
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||||
|
|
||||||
|
export class UpdateSizeHeaderApiAndTokenApiFieldApiHistoryTable1762243747843 implements MigrationInterface {
|
||||||
|
name = 'UpdateSizeHeaderApiAndTokenApiFieldApiHistoryTable1762243747843'
|
||||||
|
|
||||||
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE \`apiHistory\` DROP COLUMN \`headerApi\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`apiHistory\` ADD \`headerApi\` longtext NULL COMMENT 'header'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`apiHistory\` DROP COLUMN \`tokenApi\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`apiHistory\` ADD \`tokenApi\` longtext NULL COMMENT 'token'`);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE \`apiHistory\` DROP COLUMN \`tokenApi\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`apiHistory\` ADD \`tokenApi\` varchar(255) NULL COMMENT 'token'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`apiHistory\` DROP COLUMN \`headerApi\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`apiHistory\` ADD \`headerApi\` varchar(255) NULL COMMENT 'header'`);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue