Merge pull request #6146 from appwrite/fix-create-function-request-filter
Fix create execution request filter from previous SDK version
This commit is contained in:
commit
30713f58f9
2 changed files with 7 additions and 1 deletions
|
@ -17,7 +17,7 @@ class V16 extends Filter
|
|||
$content['commands'] = $this->getCommands($content['runtime'] ?? '');
|
||||
break;
|
||||
case 'functions.createExecution':
|
||||
$content['body'] = $content['data'];
|
||||
$content['body'] = $content['data'] ?? '';
|
||||
unset($content['data']);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -34,6 +34,12 @@ class V16Test extends TestCase
|
|||
'body' => 'Lorem ipsum'
|
||||
],
|
||||
],
|
||||
'no data' => [
|
||||
[],
|
||||
[
|
||||
'body' => ''
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue