1
0
Fork 0
mirror of synced 2024-10-01 01:37:56 +13:00

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:
Christy Jacob 2023-09-05 23:50:08 -04:00 committed by GitHub
commit 30713f58f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -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;
}

View file

@ -34,6 +34,12 @@ class V16Test extends TestCase
'body' => 'Lorem ipsum'
],
],
'no data' => [
[],
[
'body' => ''
],
],
];
}