From 31a06c705750756dd5090eef0b1e44e34e080a42 Mon Sep 17 00:00:00 2001 From: "val.istar.guo" Date: Sun, 1 Sep 2024 17:30:40 +0800 Subject: [PATCH] fix lint error --- app/backend/src/app.service.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/backend/src/app.service.ts b/app/backend/src/app.service.ts index c3bc62c..78a2bd5 100644 --- a/app/backend/src/app.service.ts +++ b/app/backend/src/app.service.ts @@ -30,7 +30,7 @@ export class AppService { return this.health.check([]) } - private async registerApplication() { + private async registerApplication(): Promise { await this.applicationService.register({ code: 'opendoc', title: 'OpenDoc', @@ -38,7 +38,7 @@ export class AppService { await this.em.flush() } - async registerDocs() { + async registerDocs(): Promise { const docsDir = path.join(process.cwd(), '../../docs') const tgzStream = new compressing.tgz.Stream() @@ -57,7 +57,7 @@ export class AppService { }) } - async registerOpenapi(openapi: OpenAPIObject) { + async registerOpenapi(openapi: OpenAPIObject): Promise { const { temporaryFile } = await import('tempy') const openapiBuf = Buffer.from(JSON.stringify(openapi), 'utf-8') @@ -77,7 +77,7 @@ export class AppService { } @EnsureRequestContext() - async registerOpendoc(openapi: OpenAPIObject) { + async registerOpendoc(openapi: OpenAPIObject): Promise { await this.registerApplication() await this.registerDocs() await this.registerOpenapi(openapi)