mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fix(task-streaming): and test sending data via notify_push
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
This commit is contained in:
parent
172423f3d6
commit
704d482b17
1 changed files with 4 additions and 4 deletions
|
|
@ -1234,11 +1234,11 @@ class Manager implements IManager {
|
|||
return false;
|
||||
}
|
||||
$userId = $task->getUserId();
|
||||
if ($userId !== null && $userId !== '') {
|
||||
if ($userId !== null && $userId !== '' && $this->appManager->isEnabledForAnyone('notify_push')) {
|
||||
try {
|
||||
// TODO figure out how to get the queue with DI
|
||||
// $queue = Server::get(\OCA\NotifyPush\IQueue::class);
|
||||
$queue = $this->serverContainer->get(\OCA\NotifyPush\IQueue::class);
|
||||
// $this->appManager->loadApp('notify_push');
|
||||
$queue = Server::get(\OCA\NotifyPush\Queue\IQueue::class);
|
||||
// $queue = $this->serverContainer->get(\OCA\NotifyPush\Queue\IQueue::class);
|
||||
$queue->push('notify_custom', [
|
||||
'user' => $userId,
|
||||
'message' => 'taskprocessing_task_results',
|
||||
|
|
|
|||
Loading…
Reference in a new issue