Skip to content

Commit 0ba14f6

Browse files
committed
#74 update format of settings response api
1 parent 4cc76ac commit 0ba14f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: app/src/Interfaces/Http/Controller/SettingsAction.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ public function __invoke(
2323
AppVersion $appVersion,
2424
ClientSettings $clientSettings,
2525
): ResourceInterface {
26+
$supportedEvents = \explode(',', $clientSettings->supportedEvents);
27+
2628
return new JsonResource([
2729
'auth' => [
2830
'enabled' => $settings->enabled,
@@ -33,7 +35,7 @@ public function __invoke(
3335
],
3436
'version' => $appVersion->version,
3537
'client' => [
36-
'events' => $clientSettings->supportedEvents,
38+
'events' => $supportedEvents,
3739
]
3840
]);
3941
}

0 commit comments

Comments
 (0)