Skip to content

Commit

Permalink
2.5.17 add icon file size
Browse files Browse the repository at this point in the history
  • Loading branch information
pauljonescodes committed Feb 2, 2024
1 parent d3150db commit 68285ed
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
14 changes: 14 additions & 0 deletions src/database/migrations/1706833584412-AddIconFileSize.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { MigrationInterface, QueryRunner } from "typeorm";

export class AddIconFileSize1706833584412 implements MigrationInterface {
name = 'AddIconFileSize1706833584412'

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "app_config" ADD "iconFileSize" character varying`);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "app_config" DROP COLUMN "iconFileSize"`);
}

}
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down Expand Up @@ -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' },
Expand Down
4 changes: 4 additions & 0 deletions src/moa-square/entities/app-config.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit 68285ed

Please sign in to comment.