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