qol updates for comm.* api endpoint
parent
2c80c3b542
commit
dbfc374e46
|
@ -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<string, number>;
|
||||
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue