MCPcopy Create free account
hub / github.com/subquery/subql / forceClean

Function forceClean

packages/node-core/src/subcommands/foreceClean.init.ts:10–21  ·  view source on GitHub ↗
(forceCleanModule: any)

Source from the content-addressed store, hash-verified

8
9const logger = getLogger('CLI');
10export async function forceClean(forceCleanModule: any): Promise<void> {
11 try {
12 const app = await NestFactory.create(forceCleanModule);
13 await app.init();
14 const forceCleanService = app.get(ForceCleanService);
15 await forceCleanService.forceClean();
16 } catch (e: any) {
17 exitWithError(new Error(`Force-clean failed to execute`, {cause: e}), logger);
18 }
19
20 process.exit(0);
21}

Callers 1

forceCleanInitFunction · 0.90

Calls 5

exitWithErrorFunction · 0.90
initMethod · 0.65
getMethod · 0.65
createMethod · 0.45
forceCleanMethod · 0.45

Tested by

no test coverage detected