[CORE] Fix small bug where Notice was sending a JSON representation to the queue, instead of sending itself
This commit is contained in:
parent
c130739de0
commit
f79cd8cee3
@ -2546,11 +2546,8 @@ class Notice extends Managed_DataObject
|
|||||||
// If there's a failure, we want to _force_
|
// If there's a failure, we want to _force_
|
||||||
// distribution at this point.
|
// distribution at this point.
|
||||||
try {
|
try {
|
||||||
$json = json_encode((object)array('id' => $this->getID(),
|
|
||||||
'type' => 'Notice',
|
|
||||||
));
|
|
||||||
$qm = QueueManager::get();
|
$qm = QueueManager::get();
|
||||||
$qm->enqueue($json, 'distrib');
|
$qm->enqueue($this, 'distrib');
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
// If the exception isn't transient, this
|
// If the exception isn't transient, this
|
||||||
// may throw more exceptions as DQH does
|
// may throw more exceptions as DQH does
|
||||||
|
Loading…
Reference in New Issue
Block a user