From dbfc374e467a9c1f88529f92cf7f03e0bf7bf44f Mon Sep 17 00:00:00 2001 From: Matthew Date: Sat, 11 Feb 2023 23:51:27 -0500 Subject: [PATCH] qol updates for comm.* api endpoint --- src/api/comm.libraryofcode.org/routes/report.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/comm.libraryofcode.org/routes/report.ts b/src/api/comm.libraryofcode.org/routes/report.ts index a2f0b30..961ad73 100644 --- a/src/api/comm.libraryofcode.org/routes/report.ts +++ b/src/api/comm.libraryofcode.org/routes/report.ts @@ -4,7 +4,7 @@ import jwt from 'jsonwebtoken'; import { TextChannel } from 'eris'; import { ScoreHistorical } from 'cr-db/mongodb'; import { LocalStorage, Route, Server } from '../../../class'; -import { getTotalMessageCount } from '../../../intervals/score'; +import { getTotalMessageCount } from '../../../functions/calculateReport'; export default class Report extends Route { public timeout: Map; @@ -595,7 +595,7 @@ export default class Report extends Route { const args = []; args.push(offer.userID, 'hard'); `${offer.department}:${offer.name}`.split(' ').forEach((item) => args.push(item)); - await this.server.client.commands.get('score').run(message, args); + // await this.server.client.commands.get('score').run(message, args); await this.acceptedOffers.set(req.query.code.toString(), true); return res.sendStatus(200); } catch (err) {