From 41acbbd48e8f621537a52b226455f7ebfe719c36 Mon Sep 17 00:00:00 2001 From: Josh Date: Tue, 24 Sep 2024 12:28:26 -0400 Subject: [PATCH] fix: oops Signed-off-by: Josh --- lib/BackgroundJobs/AdminNotification.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/BackgroundJobs/AdminNotification.php b/lib/BackgroundJobs/AdminNotification.php index fc89f33..3cbb57b 100644 --- a/lib/BackgroundJobs/AdminNotification.php +++ b/lib/BackgroundJobs/AdminNotification.php @@ -36,17 +36,17 @@ protected function run($argument): void { ->setSubject('updated') ->setObject('dummy', '23'); - $enableLink = $this->url->getAbsoluteURL($this->url->linkTo('', 'ocs/v2.php/apps/survey_client/api/v1/monthly'), 'POST')); + $enableLink = $this->url->getAbsoluteURL($this->url->linkTo('', 'ocs/v2.php/apps/survey_client/api/v1/monthly')); $enableAction = $notification->createAction(); $enableAction->setLabel('enable') - ->setLink($enableLink) + ->setLink($enableLink, 'POST') ->setPrimary(true); $notification->addAction($enableAction); - $disableLink = $this->url->getAbsoluteURL($this->url->linkTo('', 'ocs/v2.php/apps/survey_client/api/v1/monthly'), 'DELETE')); + $disableLink = $this->url->getAbsoluteURL($this->url->linkTo('', 'ocs/v2.php/apps/survey_client/api/v1/monthly')); $disableAction = $notification->createAction(); $disableAction->setLabel('disable') - ->setLink($disableLink) + ->setLink($disableLink, 'DELETE') ->setPrimary(false); $notification->addAction($disableAction);