From 7fa849d2a083d2d33c5a128cf31ccfafcf8c986e Mon Sep 17 00:00:00 2001 From: Eli Bosley Date: Fri, 17 Jan 2025 14:04:08 -0500 Subject: [PATCH] feat: cli Commands --- api/src/unraid-api/rest/rest.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/unraid-api/rest/rest.service.ts b/api/src/unraid-api/rest/rest.service.ts index 8e543d7e3..73e89c628 100644 --- a/api/src/unraid-api/rest/rest.service.ts +++ b/api/src/unraid-api/rest/rest.service.ts @@ -9,6 +9,7 @@ import { execa } from 'execa'; import { getBannerPathIfPresent, getCasePathIfPresent } from '@app/core/utils/images/image-file-helpers'; import { getters } from '@app/store/index'; import { ReportCommand } from '@app/unraid-api/cli/report.command'; +import { LogService } from '@app/unraid-api/cli/log.service'; @Injectable() export class RestService { @@ -16,7 +17,7 @@ export class RestService { async saveApiReport(pathToReport: string) { try { - const reportCommand = new ReportCommand(); + const reportCommand = new ReportCommand(new LogService()); const apiReport = await reportCommand.report({ json: true, verbose: 2, raw: false }); this.logger.debug('Report object %o', apiReport);