File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -36,15 +36,17 @@ protected function run($argument): void {
36
36
->setSubject ('updated ' )
37
37
->setObject ('dummy ' , '23 ' );
38
38
39
+ $ enableLink = $ this ->url ->linkToOCSRouteAbsolute ('survey_client.Endpoint.enableMonthly ' );
39
40
$ enableAction = $ notification ->createAction ();
40
41
$ enableAction ->setLabel ('enable ' )
41
- ->setLink ($ this -> url -> getAbsoluteURL ( ' ocs/v2.php/apps/survey_client/api/v1/monthly ' ) , 'POST ' )
42
+ ->setLink ($ enableLink , 'POST ' )
42
43
->setPrimary (true );
43
44
$ notification ->addAction ($ enableAction );
44
45
46
+ $ disableLink = $ this ->url ->linkToOCSRouteAbsolute ('survey_client.Endpoint.disableMonthly ' );
45
47
$ disableAction = $ notification ->createAction ();
46
48
$ disableAction ->setLabel ('disable ' )
47
- ->setLink ($ this -> url -> getAbsoluteURL ( ' ocs/v2.php/apps/survey_client/api/v1/monthly ' ) , 'DELETE ' )
49
+ ->setLink ($ disableLink , 'DELETE ' )
48
50
->setPrimary (false );
49
51
$ notification ->addAction ($ disableAction );
50
52
You can’t perform that action at this time.
0 commit comments