mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Implement new native filters
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user