File tree 1 file changed +13
-3
lines changed
1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 19
19
class RunCommand extends Command
20
20
{
21
21
public const ALLOWED_TASKS = [
22
+ 'task-refund-bid ' ,
23
+ 'task-refund-nft ' ,
22
24
'task-transfer-nft ' ,
23
- 'task-transfer-token ' ,
25
+ 'task-payment ' ,
26
+ 'task-payment-fees ' ,
24
27
];
25
28
26
29
public const STATUS_OK = 'OK ' ;
@@ -34,7 +37,11 @@ class RunCommand extends Command
34
37
35
38
public function __construct ()
36
39
{
37
- $ this ->httpClient = HttpClient::create ();
40
+ $ this ->httpClient = HttpClient::create ([
41
+ 'headers ' => [
42
+ 'User-Agent ' => 'AuctionX Worker '
43
+ ]
44
+ ]);
38
45
39
46
parent ::__construct ();
40
47
}
@@ -91,10 +98,13 @@ private function runProcess(): int
91
98
92
99
try {
93
100
switch ($ message ['task ' ]) {
101
+ case 'task-refund-nft ' :
94
102
case 'task-transfer-nft ' :
95
103
$ response = $ this ->immutableXClient ->transferNft ($ message ['body ' ]);
96
104
break ;
97
- case 'task-transfer-token ' :
105
+ case 'task-refund-bid ' :
106
+ case 'task-payment ' :
107
+ case 'task-payment-fees ' :
98
108
$ response = $ this ->immutableXClient ->transferToken ($ message ['body ' ]);
99
109
break ;
100
110
}
You can’t perform that action at this time.
0 commit comments