remove debug
This commit is contained in:
parent
f2aacb315a
commit
0d804c9211
|
@ -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 = {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue