Commit 2bfd6871 authored by Emiliano Balbuena's avatar Emiliano Balbuena

(chore): Don't set TTL for declined summons

1 merge request!100Epic/reporting and moderation
Pipeline #62199126 passed with stages
in 4 minutes and 35 seconds
......@@ -150,8 +150,10 @@ class Manager
throw new Exception('User is not summoned');
}
$summons
->setTtl(10 * 60);
if (!$summons->isDeclined()) {
$summons
->setTtl(10 * 60);
}
$this->repository->add($summons);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment