1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

Implement new native filters

This commit is contained in:
Bradley Schofield 2021-07-23 09:48:51 +01:00
parent e0ab558f90
commit b5ab777cad

View file

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