refactor
This commit is contained in:
parent
fd7b77c542
commit
b6f21b6edb
16 changed files with 104 additions and 21 deletions
|
|
@ -60,7 +60,8 @@ export class ChartManagementService implements OnApplicationShutdown {
|
|||
}, 1000 * 60 * 20);
|
||||
}
|
||||
|
||||
async onApplicationShutdown(signal: string): Promise<void> {
|
||||
@bindThis
|
||||
public async dispose(): Promise<void> {
|
||||
clearInterval(this.saveIntervalId);
|
||||
if (process.env.NODE_ENV !== 'test') {
|
||||
await Promise.all(
|
||||
|
|
@ -68,4 +69,9 @@ export class ChartManagementService implements OnApplicationShutdown {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
@bindThis
|
||||
async onApplicationShutdown(signal: string): Promise<void> {
|
||||
await this.dispose();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue