mirror of
https://github.com/appwrite/appwrite
synced 2026-05-17 22:18:51 +00:00
26 lines
668 B
PHP
26 lines
668 B
PHP
<?php
|
|
|
|
namespace Appwrite\Utopia\Database\Validator;
|
|
|
|
use Utopia\Database\Document;
|
|
use Utopia\Database\Validator\Queries as ValidatorQueries;
|
|
|
|
class Queries extends ValidatorQueries
|
|
{
|
|
/**
|
|
* Expression constructor
|
|
*
|
|
* @param Document[] $attributes
|
|
* @param Document[] $indexes
|
|
* @param bool $strict
|
|
*/
|
|
public function __construct($attributes, $indexes, $strict)
|
|
{
|
|
// Remove failed/stuck/processing indexes
|
|
$indexes = \array_filter($indexes, function ($index) {
|
|
return $index->getAttribute('status') === 'available';
|
|
});
|
|
|
|
parent::__construct($attributes, $indexes, $strict);
|
|
}
|
|
}
|