From 2217d0fb2c099eb5938a93dcbb2ec0da3cd5c448 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Fri, 6 Nov 2020 02:32:24 -0500 Subject: [PATCH] more fixes x2 --- src/api/comm.libraryofcode.org/routes/report.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/comm.libraryofcode.org/routes/report.ts b/src/api/comm.libraryofcode.org/routes/report.ts index 3c8b5e9..86c0e3f 100644 --- a/src/api/comm.libraryofcode.org/routes/report.ts +++ b/src/api/comm.libraryofcode.org/routes/report.ts @@ -129,10 +129,10 @@ export default class Report extends Route { if (data.report.roles <= 0) role = 0; else if (data.report.roles > 54) role = 54; - else activity = Math.round(data.report.roles); + else role = Math.round(data.report.roles); if (data.report.staff <= 0) role = 0; - else activity = Math.round(data.report.staff); + else misc = Math.round(data.report.staff); if (data.report.cloudServices === 0) cloud = 0; else if (data.report.cloudServices > 10) cloud = 10; @@ -309,10 +309,10 @@ export default class Report extends Route { if (data.report.roles <= 0) role = 0; else if (data.report.roles > 54) role = 54; - else activity = Math.round(data.report.roles); + else role = Math.round(data.report.roles); if (data.report.staff <= 0) role = 0; - else activity = Math.round(data.report.staff); + else misc = Math.round(data.report.staff); if (data.report.cloudServices === 0) cloud = 0; else if (data.report.cloudServices > 10) cloud = 10;