Skip to content

Commit

Permalink
fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
youssef20000 authored and youssef20000 committed Apr 9, 2019
1 parent 685b2ce commit b388d13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/OneSignal.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class OneSignal
protected $fields;
public function __construct($appId=null, $apiKey=null)
{
if ($appId)
if ($apiKey)
$this->apiKey = $apiKey;
else
$this->apiKey = config('onesignal.api_key');
Expand All @@ -32,7 +32,6 @@ public function __construct($appId=null, $apiKey=null)
protected function prepare()
{
$app_id = $this->appId;
$rest_api_key = $this->apiKey;
$heading = $this->heading;
$content = $this->content;
$fields = array(
Expand Down

0 comments on commit b388d13

Please # to comment.