mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
updated query logic in array to be of and format
This commit is contained in:
@@ -33,12 +33,13 @@ class RuntimeQuery extends Query
|
||||
if (empty($queries)) {
|
||||
return $payload;
|
||||
}
|
||||
// multiple queries follows and condition
|
||||
foreach ($queries as $query) {
|
||||
if (self::evaluateFilter($query, $payload)) {
|
||||
return $payload;
|
||||
if (!self::evaluateFilter($query, $payload)) {
|
||||
return [];
|
||||
};
|
||||
}
|
||||
return [];
|
||||
return $payload;
|
||||
}
|
||||
|
||||
private static function evaluateFilter(Query $query, array $payload): bool
|
||||
|
||||
Reference in New Issue
Block a user