From b1cb52629f1bcb12682a4b8a098f0a07d24f1d0d Mon Sep 17 00:00:00 2001 From: "val.istar.guo" Date: Mon, 6 May 2024 11:10:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BF=81=E7=A7=BB=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E6=97=A0=E6=B3=95=E8=87=AA=E5=8A=A8=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E9=A2=84=E8=AE=BE=E7=9A=84=E5=BA=94=E7=94=A8=E7=BC=96=E7=A0=81?= =?UTF-8?q?=E9=BB=91=E5=90=8D=E5=8D=95=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/healthy-numbers-sell.md | 5 +++++ app/backend/nest-cli.json | 4 ++++ app/backend/src/migrations/Migration20240505121024.ts | 5 ++++- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .changeset/healthy-numbers-sell.md diff --git a/.changeset/healthy-numbers-sell.md b/.changeset/healthy-numbers-sell.md new file mode 100644 index 0000000..047da3d --- /dev/null +++ b/.changeset/healthy-numbers-sell.md @@ -0,0 +1,5 @@ +--- +"@opendoc/backend": patch +--- + +迁移脚本无法自动添加预设的应用编码黑名单 diff --git a/app/backend/nest-cli.json b/app/backend/nest-cli.json index b246267..5042cb7 100644 --- a/app/backend/nest-cli.json +++ b/app/backend/nest-cli.json @@ -4,6 +4,10 @@ "sourceRoot": "src", "compilerOptions": { "deleteOutDir": true, + "assets": [ + "**/*.json" + ], + "watchAssets": true, "plugins": [ { "name": "@nestjs/swagger", diff --git a/app/backend/src/migrations/Migration20240505121024.ts b/app/backend/src/migrations/Migration20240505121024.ts index 7e8d4b1..88b97bf 100644 --- a/app/backend/src/migrations/Migration20240505121024.ts +++ b/app/backend/src/migrations/Migration20240505121024.ts @@ -1,6 +1,9 @@ +/* eslint-disable @typescript-eslint/no-var-requires */ /* eslint-disable @typescript-eslint/require-await */ import { Migration } from '@mikro-orm/migrations' -import * as forbiddenCodes from './forbidden-application-codes.json' + +const forbiddenCodes = require('./forbidden-application-codes.json') + export class Migration20240505121024 extends Migration { async up(): Promise {