Skip to content

Commit

Permalink
missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
boly38 committed Jul 7, 2022
1 parent 74dba3a commit 09a75ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 09a75ee

Please sign in to comment.