This commit is contained in:
Philipinho
2024-05-03 15:52:25 +01:00
parent 7f933addff
commit c1cd090252
7 changed files with 22 additions and 13 deletions

View File

@ -29,7 +29,7 @@ export class CollaborationGateway {
this.hocuspocus.handleConnection(client, request);
}
destroy() {
this.hocuspocus.destroy();
async destroy(): Promise<void> {
await this.hocuspocus.destroy();
}
}

View File

@ -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();