Commit 714309db authored by nanahira's avatar nanahira

fix

parent d67bc68c
Pipeline #8749 passed with stages
in 1 minute and 21 seconds
...@@ -40,7 +40,7 @@ export class KoishiService ...@@ -40,7 +40,7 @@ export class KoishiService
...koishiModuleOptions, ...koishiModuleOptions,
port: 1, port: 1,
}); });
this.options.baseDir ||= process.cwd(); this.baseDir ??= process.cwd();
this.globalInterceptors = this.koishiModuleOptions.globalInterceptors || []; this.globalInterceptors = this.koishiModuleOptions.globalInterceptors || [];
this.router = new Router(); this.router = new Router();
this._nestKoaTmpInstance.use(KoaBodyParser()); this._nestKoaTmpInstance.use(KoaBodyParser());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment