Skip to content

Commit

Permalink
修复迁移脚本无法自动添加预设的应用编码黑名单问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Val-istar-Guo committed May 6, 2024
1 parent f9858a7 commit b1cb526
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/healthy-numbers-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@opendoc/backend": patch
---

迁移脚本无法自动添加预设的应用编码黑名单
4 changes: 4 additions & 0 deletions app/backend/nest-cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"sourceRoot": "src",
"compilerOptions": {
"deleteOutDir": true,
"assets": [
"**/*.json"
],
"watchAssets": true,
"plugins": [
{
"name": "@nestjs/swagger",
Expand Down
5 changes: 4 additions & 1 deletion app/backend/src/migrations/Migration20240505121024.ts
Original file line number Diff line number Diff line change
@@ -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<void> {
Expand Down

0 comments on commit b1cb526

Please sign in to comment.