From d79932ecd9d033ae2d5c68c513967092a6e3f326 Mon Sep 17 00:00:00 2001 From: cool Date: Sat, 1 Jun 2024 16:23:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=B1=BB=E5=9E=8B=E9=87=8D?= =?UTF-8?q?=E6=96=B0=E7=94=9F=E6=88=90=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/plugin/service/types.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/plugin/service/types.ts b/src/modules/plugin/service/types.ts index 3e8574c..98b4fc4 100644 --- a/src/modules/plugin/service/types.ts +++ b/src/modules/plugin/service/types.ts @@ -80,7 +80,7 @@ export class PluginTypesService extends BaseService { }; const program = ts.createProgram(['file.ts'], options, compilerHost); - const emitResult = program.emit(); + program.emit(); if (!output) { // Provide a default value if the output is still empty @@ -231,6 +231,7 @@ export class PluginTypesService extends BaseService { async reGenerate() { const pluginInfos = await this.pluginInfoEntity .createQueryBuilder('a') + .where('a.status = :status', { status: 1 }) .select(['a.id', 'a.status', 'a.tsContent', 'a.keyName']) .getMany(); for (const pluginInfo of pluginInfos) {