Skip to content

Commit

Permalink
fix: #1676 - cache enhancements
Browse files Browse the repository at this point in the history
- added default parameter back in for tenant id
  • Loading branch information
tzinckgraf committed Oct 16, 2023
1 parent d304883 commit 0660125
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/server/src/arpa_reporter/lib/audit-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ async function createProjectSummariesSheet(periodId, domain, tenantId, dataBefor

async function getProjectSummariesData(periodId, domain, tenantId, calculatePriorPeriods, logger = log) {
logger.info('building rows for spreadsheet');
debugger;
const uploads = await knex('uploads')
.select({
id: 'uploads.id',
Expand Down Expand Up @@ -525,7 +524,7 @@ async function getCache(periodId, domain, tenantId, force = false, logger = log)
return data;
}

async function generateSheets(periodId, domain, tenantId, dataBefore = null, logger = log) {
async function generateSheets(periodId, domain, tenantId = useTenantId(), dataBefore = null, logger = log) {
// generate sheets data
const obligations = await tracer.trace('createObligationSheet',
async () => createObligationSheet(
Expand Down

0 comments on commit 0660125

Please sign in to comment.