From 03367b0d421c890784e81192f33836bba2d3e3fd Mon Sep 17 00:00:00 2001 From: HaveAGitGat Date: Wed, 22 May 2024 08:12:01 +0000 Subject: [PATCH] Apply auto-build changes --- .../video/runHealthCheck/1.0.0/index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/FlowPlugins/CommunityFlowPlugins/video/runHealthCheck/1.0.0/index.js b/FlowPlugins/CommunityFlowPlugins/video/runHealthCheck/1.0.0/index.js index 9075aae..f5c38ee 100644 --- a/FlowPlugins/CommunityFlowPlugins/video/runHealthCheck/1.0.0/index.js +++ b/FlowPlugins/CommunityFlowPlugins/video/runHealthCheck/1.0.0/index.js @@ -126,10 +126,20 @@ var plugin = function (args) { return __awaiter(void 0, void 0, void 0, function return [4 /*yield*/, cli.runCli()]; case 1: res = _a.sent(); + if (!(typeof args.updateStat !== 'undefined')) return [3 /*break*/, 3]; + return [4 /*yield*/, args.updateStat(args.originalLibraryFile.DB, 'totalHealthCheckCount', 1)]; + case 2: + _a.sent(); + _a.label = 3; + case 3: if (res.cliExitCode !== 0) { args.jobLog('Running CLI failed'); + args.logOutcome('hErr'); throw new Error('Running CLI failed'); } + args.logOutcome('hSuc'); + // will cause item to go into the health check success table + args.variables.healthCheck = 'Success'; return [2 /*return*/, { outputFileObj: args.inputFileObj, outputNumber: 1,