mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
Add safety defaults to funcions worker
This commit is contained in:
parent
933f9631d5
commit
a782636e13
1 changed files with 6 additions and 6 deletions
|
|
@ -384,9 +384,9 @@ $server->job()
|
|||
data: $data,
|
||||
user: $user,
|
||||
jwt: $jwt,
|
||||
path: $payload['path'],
|
||||
method: $payload['method'],
|
||||
headers: $payload['headers'],
|
||||
path: $payload['path'] ?? '',
|
||||
method: $payload['method'] ?? 'POST',
|
||||
headers: $payload['headers'] ?? [],
|
||||
statsd: $statsd,
|
||||
);
|
||||
break;
|
||||
|
|
@ -404,9 +404,9 @@ $server->job()
|
|||
data: null,
|
||||
user: null,
|
||||
jwt: null,
|
||||
path: $payload['path'],
|
||||
method: $payload['method'],
|
||||
headers: $payload['headers'],
|
||||
path: $payload['path'] ?? '/',
|
||||
method: $payload['method'] ?? 'POST',
|
||||
headers: $payload['headers'] ?? [],
|
||||
statsd: $statsd,
|
||||
);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue