qol updates for comm.* api endpoint
parent
2c80c3b542
commit
dbfc374e46
|
@ -4,7 +4,7 @@ import jwt from 'jsonwebtoken';
|
||||||
import { TextChannel } from 'eris';
|
import { TextChannel } from 'eris';
|
||||||
import { ScoreHistorical } from 'cr-db/mongodb';
|
import { ScoreHistorical } from 'cr-db/mongodb';
|
||||||
import { LocalStorage, Route, Server } from '../../../class';
|
import { LocalStorage, Route, Server } from '../../../class';
|
||||||
import { getTotalMessageCount } from '../../../intervals/score';
|
import { getTotalMessageCount } from '../../../functions/calculateReport';
|
||||||
|
|
||||||
export default class Report extends Route {
|
export default class Report extends Route {
|
||||||
public timeout: Map<string, number>;
|
public timeout: Map<string, number>;
|
||||||
|
@ -595,7 +595,7 @@ export default class Report extends Route {
|
||||||
const args = [];
|
const args = [];
|
||||||
args.push(offer.userID, 'hard');
|
args.push(offer.userID, 'hard');
|
||||||
`${offer.department}:${offer.name}`.split(' ').forEach((item) => args.push(item));
|
`${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);
|
await this.acceptedOffers.set(req.query.code.toString(), true);
|
||||||
return res.sendStatus(200);
|
return res.sendStatus(200);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
Loading…
Reference in New Issue