remove debug

This commit is contained in:
Thibault Duplessis 2014-11-07 15:09:22 +01:00
parent f2aacb315a
commit 0d804c9211
2 changed files with 1 additions and 3 deletions

View file

@ -18,8 +18,6 @@ final class Env(
lazy val api = new ReportApi(hub.actor.evaluator)
api.autoCheatReport("thibault", "haha lololol")
// api actor
system.actorOf(Props(new Actor {
def receive = {

View file

@ -23,7 +23,7 @@ private[report] final class ReportApi(evaluator: ActorSelection) {
!isAlreadySlain(report, user) ?? {
if (by.id == UserRepo.lichessId) reportTube.coll.update(
selectRecent(user, reason),
reportTube.toMongo(report).get - "_id" pp
reportTube.toMongo(report).get - "_id"
) map { res =>
if (!res.updatedExisting) {
if (report.isCheat) evaluator ! user