diff options
Diffstat (limited to 'core/Controller')
-rw-r--r-- | core/Controller/ReferenceApiController.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/core/Controller/ReferenceApiController.php b/core/Controller/ReferenceApiController.php index 9c3a212e8d7..6aba56d7e77 100644 --- a/core/Controller/ReferenceApiController.php +++ b/core/Controller/ReferenceApiController.php @@ -97,8 +97,6 @@ class ReferenceApiController extends \OCP\AppFramework\OCSController { /** * @NoAdminRequired - * - * @return DataResponse */ public function getProvidersInfo(): DataResponse { $providers = $this->referenceManager->getDiscoverableProviders(); @@ -110,14 +108,12 @@ class ReferenceApiController extends \OCP\AppFramework\OCSController { /** * @NoAdminRequired - * - * @param string $providerId - * @return DataResponse */ public function touchProvider(string $providerId, ?int $timestamp = null): DataResponse { if ($this->userId !== null) { - $this->referenceManager->touchProvider($this->userId, $providerId, $timestamp); + $success = $this->referenceManager->touchProvider($this->userId, $providerId, $timestamp); + return new DataResponse(['success' => $success]); } - return new DataResponse(['success' => true]); + return new DataResponse(['success' => false]); } } |