Implement new native filters
This commit is contained in:
parent
e0ab558f90
commit
b5ab777cad
1 changed files with 2 additions and 6 deletions
|
@ -63,16 +63,12 @@ $stderr = '';
|
|||
|
||||
$executionStart = \microtime(true);
|
||||
|
||||
$response = $orchestration->list();
|
||||
$response = $orchestration->list(['labels' => 'appwrite-type=function']);
|
||||
|
||||
$list = [];
|
||||
|
||||
array_map(function($value) use (&$list) {
|
||||
if (!empty($value->labels["appwrite-type"])) {
|
||||
if ($value->labels["appwrite-type"] == "function") {
|
||||
$list[$value->name] = $value;
|
||||
}
|
||||
}
|
||||
$list[$value->getName()] = $value;
|
||||
}, $response);
|
||||
|
||||
$executionEnd = \microtime(true);
|
||||
|
|
Loading…
Reference in a new issue