Skip to content

Commit

Permalink
Return empty response instead of "null" in api
Browse files Browse the repository at this point in the history
  • Loading branch information
zorn-v committed Sep 18, 2022
1 parent a50193b commit 3e1f12d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<name>Social Login</name>
<summary>Social login via OAuth or OpenID</summary>
<description> </description>
<version>4.17.0</version>
<version>4.17.1</version>
<licence>agpl</licence>
<author>zorn-v</author>
<namespace>SocialLogin</namespace>
Expand Down
2 changes: 2 additions & 0 deletions lib/Controller/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace OCA\SocialLogin\Controller;

use OCP\AppFramework\ApiController as BaseController;
use OCP\AppFramework\Http\Response;
use OCP\IConfig;
use OCP\IRequest;

Expand All @@ -28,5 +29,6 @@ public function __construct(
public function setConfig($key, $config)
{
$this->config->setAppValue($this->appName, $key, $config);
return new Response();
}
}

0 comments on commit 3e1f12d

Please sign in to comment.