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) {