Skip to content
This repository has been archived by the owner on Feb 13, 2025. It is now read-only.

Commit

Permalink
MWPW-154071 Marketo mapping for Workfront (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon32 authored Jul 17, 2024
1 parent 8ca5487 commit 553c7c6
Show file tree
Hide file tree
Showing 4 changed files with 428 additions and 3 deletions.
3 changes: 2 additions & 1 deletion bulk-update/bulk-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,9 @@ export default async function main(config, migrate, reporter = null) {
console.error('Bulk Update Error:', e);
config.reporter.log('Bulk Update Error', 'error', e.message, e.stack);
}
const totals = await config.reporter.generateTotals();

return config.reporter.generateTotals();
return totals;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion bulk-update/reporter/excel-reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ExcelReporter extends BaseReporter {
* @param {boolean} [autoSave=true] - Excel file should be automatically saved when logging.
* Disable to improve performance. Don't forget to call `saveReport` when done.
*/
constructor(filepath, autoSave = true) {
constructor(filepath, autoSave = false) {
super();
this.filepath = filepath;
this.autoSave = autoSave;
Expand Down
2 changes: 1 addition & 1 deletion faas-to-marketo/url-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const dateString = ExcelReporter.getDateString();
const config = {
list: [],
siteUrl: 'https://main--bacom--adobecom.hlx.live',
reporter: new ExcelReporter(`${pathname}reports/url-report-${dateString}.xlsx`, true),
reporter: new ExcelReporter(`${pathname}reports/url-report-${dateString}.xlsx`, false),
outputDir: `${pathname}output`,
mdDir: `${pathname}md`,
mdCacheMs: 30 * 24 * 60 * 60 * 1000, // 30 days
Expand Down
Loading

0 comments on commit 553c7c6

Please sign in to comment.