File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,13 @@ public function sendTask() {
33
33
$ url = $ this ->client ->getSetting ("api_base " )."/task " ;
34
34
$ payload = $ this ->getTask ();
35
35
36
- $ webhook = $ this ->client ->getSettings ("task-webhook " );
36
+ $ webhook = $ this ->client ->getSetting ("task-webhook " );
37
37
38
38
if ($ webhook === null ) {
39
39
throw new RequestException ("You need to set webhook url. " );
40
40
}
41
41
42
- $ payload-> webhook = $ webhook ;
42
+ $ payload[ ' webhook ' ] = $ webhook ;
43
43
44
44
$ taskResponse = $ this ->sendRequest ($ url , $ payload );
45
45
Original file line number Diff line number Diff line change @@ -17,11 +17,13 @@ public function __construct(Client $client) {
17
17
$ this ->client = $ client ;
18
18
}
19
19
20
- /**
21
- * @param string $body
22
- * @throws exceptions\InvalidApiException
23
- * @throws exceptions\UndefinedSettingsException
24
- */
20
+ /**
21
+ * @param string $body
22
+ * @throws InvalidRequestException
23
+ * @throws exceptions\InvalidApiException
24
+ * @throws exceptions\TaskNotFoundException
25
+ * @throws exceptions\UndefinedSettingsException
26
+ */
25
27
public function handleRequest (string $ body ) {
26
28
$ body = json_decode ($ body , true );
27
29
//TODO: Check protocol
You can’t perform that action at this time.
0 commit comments