mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix(api): resolve CLI removing settings
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
import { Global, Module, OnApplicationBootstrap } from '@nestjs/common';
|
||||
|
||||
import { AppInstance } from '@/app.instance';
|
||||
import { LoggerService } from '@/logger/logger.service';
|
||||
|
||||
import { CleanupService } from './cleanup.service';
|
||||
@@ -24,6 +25,9 @@ export class ExtensionModule implements OnApplicationBootstrap {
|
||||
) {}
|
||||
|
||||
async onApplicationBootstrap() {
|
||||
if (!AppInstance.isReady()) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
await this.cleanupService.pruneExtensionSettings();
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user