Commit 88975f5c authored by Emiliano Balbuena's avatar Emiliano Balbuena

(fix): Queue name

1 merge request!100Epic/reporting and moderation
Pipeline #62414344 passed with stages
in 5 minutes and 14 seconds
......@@ -28,7 +28,7 @@ class ReportsAppealSummon implements QueueRunner
$client = Client::build();
$client
->setQueue(static::class)
->setQueue('ReportsAppealSummon')
->receive(function (Message $data) {
$params = $data->getData();
......
......@@ -27,7 +27,7 @@ class SummonDelegate
public function onAppeal(Appeal $appeal)
{
$this->queue
->setQueue(ReportsAppealSummon::class)
->setQueue('ReportsAppealSummon')
->send([
'appeal' => $appeal,
'cohort' => null, // TODO: It can be an array of user guids. For development purposes only.
......
......@@ -205,7 +205,7 @@ class Manager
public function defer(Appeal $appeal)
{
$this->queueClient
->setQueue(ReportsAppealSummon::class)
->setQueue('ReportsAppealSummon')
->send([
'appeal' => $appeal,
], 600);
......
......@@ -29,7 +29,7 @@ class SummonDelegateSpec extends ObjectBehavior
function it_should_queue_on_appeal(Appeal $appeal)
{
$this->queue->setQueue(ReportsAppealSummon::class)
$this->queue->setQueue('ReportsAppealSummon')
->shouldBeCalled()
->willReturn($this->queue);
......
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