diff --git a/src/server/services/summary/buildSummaries.js b/src/server/services/summary/buildSummaries.js index a6450afc1..8ee49f6ec 100644 --- a/src/server/services/summary/buildSummaries.js +++ b/src/server/services/summary/buildSummaries.js @@ -545,8 +545,6 @@ const buildSummaries = async (forceAll = false) => { // Build summaries for each time period for (const { start, end } of datePeriods) { - // console.time(`${start.toISOString()}-${end.toISOString()}`) - await sequelize.transaction(async transaction => { // Delete old summaries for this period. Remember that summary dates are exact, we dont want to delete anything "in between". await Summary.destroy({ @@ -565,8 +563,6 @@ const buildSummaries = async (forceAll = false) => { separateOrgId: OPEN_UNIVERSITY_ORG_ID, }) }) - - // console.timeEnd(`${start.toISOString()}-${end.toISOString()}`) } } diff --git a/src/server/services/summary/getOrganisationSummary.js b/src/server/services/summary/getOrganisationSummary.js index 7fa403042..082568784 100644 --- a/src/server/services/summary/getOrganisationSummary.js +++ b/src/server/services/summary/getOrganisationSummary.js @@ -78,13 +78,7 @@ const getCourseUnitSummaries = async ({ organisationId, startDate, endDate, tagI // Each of courseUnits has the same groupId and groupSummaries (calculated from the group...) so we can do this: const cu = courseUnits[0] - // cu.summary = sumSummaries(_.uniqBy(cu.groupSummaries, 'entityId')) cu.summary = sumSummaries(cu.groupSummaries) - - /* if (cu.courseCode === 'TKT10002') { - console.log(JSON.stringify(cu, null, 2)) - } */ - delete cu.dataValues.groupSummaries return cu.toJSON()