diff --git a/package.json b/package.json index 8d1ab51d..0694dd93 100644 --- a/package.json +++ b/package.json @@ -152,5 +152,5 @@ "typeorm": "node --loader ts-node/esm -r tsconfig-paths/register ./node_modules/typeorm/cli.js" }, "type": "module", - "version": "2.5.16" + "version": "2.5.17" } diff --git a/src/database/migrations/1706833584412-AddIconFileSize.ts b/src/database/migrations/1706833584412-AddIconFileSize.ts new file mode 100644 index 00000000..912e1135 --- /dev/null +++ b/src/database/migrations/1706833584412-AddIconFileSize.ts @@ -0,0 +1,14 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class AddIconFileSize1706833584412 implements MigrationInterface { + name = 'AddIconFileSize1706833584412' + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "app_config" ADD "iconFileSize" character varying`); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "app_config" DROP COLUMN "iconFileSize"`); + } + +} diff --git a/src/main.ts b/src/main.ts index 9dd9892d..5a237872 100644 --- a/src/main.ts +++ b/src/main.ts @@ -88,7 +88,7 @@ async function bootstrap() { app, new DocumentBuilder() .setTitle('MyOrderApp Square API') - .setVersion('2.5.16') + .setVersion('2.5.17') .addBearerAuth() .addApiKey( { type: 'apiKey', name: config.headerApiKey, in: 'header' }, @@ -126,7 +126,7 @@ async function bootstrap() { app, new DocumentBuilder() .setTitle('MyOrderApp Admin API') - .setVersion('2.5.16') + .setVersion('2.5.17') .addBearerAuth() .addApiKey( { type: 'apiKey', name: config.headerApiKey, in: 'header' }, diff --git a/src/moa-square/entities/app-config.entity.ts b/src/moa-square/entities/app-config.entity.ts index 579adf75..a20cf348 100644 --- a/src/moa-square/entities/app-config.entity.ts +++ b/src/moa-square/entities/app-config.entity.ts @@ -166,6 +166,10 @@ export class AppConfigEntity extends BaseEntity { @Column({ nullable: true }) iconFileContentType?: string; + @ApiProperty({ required: false, type: String, nullable: true }) + @Column({ nullable: true }) + iconFileSize?: string; + /* App Banner */ @Column({ nullable: true })