Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
arietrouw committed Oct 8, 2024
1 parent dc108bd commit 9980bcf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class WebsocketBridge<

override async stopHandler(): Promise<boolean> {
if (this.host) {
this.stopServer()
await this.stopServer()
}
return await super.stopHandler()
}
Expand Down Expand Up @@ -81,8 +81,8 @@ export class WebsocketBridge<
this.httpServer.listen(host.port ?? DEFAULT_HOST_PORT)
}

private stopServer() {
this.server?.close()
private async stopServer() {
await this.server?.close()
this.server = undefined
this.httpServer?.close()
this.httpServer = undefined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,13 @@ export abstract class AbstractModule<TParams extends ModuleParams = ModuleParams
= queryConfig ? new ModuleConfigQueryValidator(Object.assign({}, this.config, queryConfig)).queryable : this.moduleConfigQueryValidator
const validators = [this.supportedQueryValidator, configValidator]

return validators.every(validator => validator(query, payloads))
const results = await Promise.all(validators.map(validator => validator(query, payloads)))
for (const result of results) {
if (!result) {
return false
}
}
return true
}

start(_timeout?: number): Promisable<boolean> {
Expand Down

0 comments on commit 9980bcf

Please sign in to comment.