From 09a75ee2aa09ea19a5ac1a9b77f6f73c7ba0f76a Mon Sep 17 00:00:00 2001 From: Brice Vandeputte Date: Thu, 7 Jul 2022 21:26:53 +0200 Subject: [PATCH] missing await --- lib/action.js | 2 +- main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/action.js b/lib/action.js index 5029d77..cc8d51e 100644 --- a/lib/action.js +++ b/lib/action.js @@ -64,7 +64,7 @@ class Action { DEBUG_ACTION && console.log(site); DEBUG_ACTION && console.log(siteStats); - const { targetFile } = Action.produceReport(site, siteStats, outputFile); + const { targetFile } = await Action.produceReport(site, siteStats, outputFile); if (targetFile != null) { return { site, siteStats, targetFile } } diff --git a/main.js b/main.js index 3d2f353..c8952eb 100644 --- a/main.js +++ b/main.js @@ -25,7 +25,7 @@ const actionUmamiReport = async function() { } // printContext(); const reportResult = await action.umamiDailyReportV0(umamiServer, umamiUser, umamiPassword, umamiSiteDomain, umamiReportFile).catch(rethrow); - if (reportResult.targetFile !== null) { + if ('targetFile' in reportResult) { core.info(`Generated : ${reportResult.targetFile}`); } } catch (error) {