Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Borysenko <[email protected]>
  • Loading branch information
andrey18106 committed Oct 18, 2023
1 parent f24a700 commit 058a779
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
15 changes: 6 additions & 9 deletions lib/Controller/ExAppsPageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use OC\App\Platform;
use OC_App;
use OCA\AppAPI\AppInfo\Application;
use OCA\AppAPI\Attribute\AppAPIAuth;
use OCA\AppAPI\Db\DaemonConfig;
use OCA\AppAPI\Db\ExApp;
use OCA\AppAPI\Db\ExAppScope;
Expand All @@ -24,10 +23,8 @@
use OCP\App\IAppManager;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
use OCP\AppFramework\Http\Attribute\PasswordConfirmationRequired;
use OCP\AppFramework\Http\Attribute\PublicPage;
use OCP\AppFramework\Http\ContentSecurityPolicy;
use OCP\AppFramework\Http\JSONResponse;
use OCP\AppFramework\Http\TemplateResponse;
Expand Down Expand Up @@ -668,16 +665,16 @@ public function updateApp(string $appId): JSONResponse {
// 5.5 Dispatch init step on ExApp side
$this->service->dispatchExAppInit($exApp);

return new JSONResponse([
'data' => [
'appid' => $appId,
]
]);

// 6. Enable ExApp
//$this->service->enableExApp($exApp);
}

return new JSONResponse([
'data' => [
'appid' => $appId,
]
]);

//return new JSONResponse([
// 'data' => [
// 'appid' => $appId,
Expand Down
8 changes: 4 additions & 4 deletions lib/Service/AppAPIService.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,10 +389,10 @@ public function heartbeatExApp(array $params): bool {
*/
public function dispatchExAppInit(ExApp $exApp): void {
$initUrl = self::getExAppUrl(
$exApp->getProtocol(),
$exApp->getHost(),
$exApp->getPort(),
) . '/init';
$exApp->getProtocol(),
$exApp->getHost(),
$exApp->getPort(),
) . '/init';

$options = [
'headers' => [
Expand Down

0 comments on commit 058a779

Please sign in to comment.