Fix: Message::touch must not mark message as processed
This commit is contained in:
@ -63,7 +63,9 @@ final class Message
|
||||
*/
|
||||
public function touch(): Promise
|
||||
{
|
||||
$this->markAsProcessedOrFail();
|
||||
if ($this->processed) {
|
||||
throw MessageException::processed($this);
|
||||
}
|
||||
|
||||
return $this->consumer->touch($this->id);
|
||||
}
|
||||
|
Reference in New Issue
Block a user