Skip to content

Commit ff7b7d9

Browse files
committed
Reformat code to PSR1 / PSR2
Fixed bug in pushNotification() where default app_id wasn't being acknowledged correctly.
1 parent 7bd0088 commit ff7b7d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OneSignalClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ public function getNotification($id, $app_id = '')
134134
if ($app_id == '') {
135135
$app_id = $this->appId;
136136
}
137-
$headers[ 'query' ] = ["id" => $id, "app_id" => $app_id];
137+
$headers[ 'query' ] = ["app_id" => $app_id];
138138

139-
return $this->get("notifications", $headers);
139+
return $this->get("notifications/${id}", $headers);
140140
}
141141

142142
/**

0 commit comments

Comments
 (0)