mirror of
https://github.com/docmost/docmost.git
synced 2025-11-18 14:21:12 +10:00
cleanups
This commit is contained in:
@ -29,7 +29,7 @@ export class CollaborationGateway {
|
||||
this.hocuspocus.handleConnection(client, request);
|
||||
}
|
||||
|
||||
destroy() {
|
||||
this.hocuspocus.destroy();
|
||||
async destroy(): Promise<void> {
|
||||
await this.hocuspocus.destroy();
|
||||
}
|
||||
}
|
||||
|
||||
@ -38,9 +38,9 @@ export class CollaborationModule implements OnModuleInit, OnModuleDestroy {
|
||||
});
|
||||
}
|
||||
|
||||
onModuleDestroy(): any {
|
||||
async onModuleDestroy(): Promise<void> {
|
||||
if (this.collaborationGateway) {
|
||||
this.collaborationGateway.destroy();
|
||||
await this.collaborationGateway.destroy();
|
||||
}
|
||||
if (this.collabWsAdapter) {
|
||||
this.collabWsAdapter.destroy();
|
||||
|
||||
Reference in New Issue
Block a user