Migration complete
This commit is contained in:
@@ -18,7 +18,7 @@ class RestoreXenForoCommentsThread implements ShouldQueue
|
||||
* Create a new job instance.
|
||||
*/
|
||||
public function __construct(
|
||||
protected int $threadId,
|
||||
protected ?int $threadId,
|
||||
)
|
||||
{
|
||||
//
|
||||
@@ -29,6 +29,7 @@ class RestoreXenForoCommentsThread implements ShouldQueue
|
||||
*/
|
||||
public function handle(XenforoApiService $service): void
|
||||
{
|
||||
$service->restoreThreadWithEntry($this->threadId);
|
||||
if( $this->threadId )
|
||||
$service->restoreThreadWithEntry($this->threadId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user