Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Val-istar-Guo committed Sep 1, 2024
1 parent d68a8f1 commit 31a06c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/backend/src/app.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ export class AppService {
return this.health.check([])
}

private async registerApplication() {
private async registerApplication(): Promise<void> {
await this.applicationService.register({
code: 'opendoc',
title: 'OpenDoc',
})
await this.em.flush()
}

async registerDocs() {
async registerDocs(): Promise<void> {
const docsDir = path.join(process.cwd(), '../../docs')

const tgzStream = new compressing.tgz.Stream()
Expand All @@ -57,7 +57,7 @@ export class AppService {
})
}

async registerOpenapi(openapi: OpenAPIObject) {
async registerOpenapi(openapi: OpenAPIObject): Promise<void> {
const { temporaryFile } = await import('tempy')

const openapiBuf = Buffer.from(JSON.stringify(openapi), 'utf-8')
Expand All @@ -77,7 +77,7 @@ export class AppService {
}

@EnsureRequestContext()
async registerOpendoc(openapi: OpenAPIObject) {
async registerOpendoc(openapi: OpenAPIObject): Promise<void> {
await this.registerApplication()
await this.registerDocs()
await this.registerOpenapi(openapi)
Expand Down

0 comments on commit 31a06c7

Please sign in to comment.