mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
remove sleep
This commit is contained in:
Generated
+4
-4
@@ -2119,12 +2119,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/utopia-php/database.git",
|
||||
"reference": "f7c046412c5a7ee29ccd325e3e2107b132dca729"
|
||||
"reference": "5d4c5be41b1d0901819d8de0ee06382989b31cf3"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/utopia-php/database/zipball/f7c046412c5a7ee29ccd325e3e2107b132dca729",
|
||||
"reference": "f7c046412c5a7ee29ccd325e3e2107b132dca729",
|
||||
"url": "https://api.github.com/repos/utopia-php/database/zipball/5d4c5be41b1d0901819d8de0ee06382989b31cf3",
|
||||
"reference": "5d4c5be41b1d0901819d8de0ee06382989b31cf3",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -2165,7 +2165,7 @@
|
||||
"issues": "https://github.com/utopia-php/database/issues",
|
||||
"source": "https://github.com/utopia-php/database/tree/timeout"
|
||||
},
|
||||
"time": "2023-02-16T14:07:19+00:00"
|
||||
"time": "2023-02-21T09:35:53+00:00"
|
||||
},
|
||||
{
|
||||
"name": "utopia-php/domains",
|
||||
|
||||
@@ -87,7 +87,6 @@ class Queries extends Validator
|
||||
case Query::TYPE_GREATER:
|
||||
case Query::TYPE_GREATEREQUAL:
|
||||
case Query::TYPE_SEARCH:
|
||||
case Query::TYPE_SLEEP:
|
||||
$methodType = Base::METHOD_TYPE_FILTER;
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -92,8 +92,6 @@ class Filter extends Base
|
||||
$attribute = $query->getAttribute();
|
||||
|
||||
switch ($method) {
|
||||
case Query::TYPE_SLEEP:
|
||||
return true; // todo: check this please!
|
||||
case Query::TYPE_EQUAL:
|
||||
case Query::TYPE_NOTEQUAL:
|
||||
case Query::TYPE_LESSER:
|
||||
|
||||
@@ -87,7 +87,6 @@ class IndexedQueriesTest extends TestCase
|
||||
$this->assertEquals(true, $validator->isValid(['offset(10)']), $validator->getDescription());
|
||||
$this->assertEquals(true, $validator->isValid(['orderAsc("name")']), $validator->getDescription());
|
||||
$this->assertEquals(true, $validator->isValid(['search("name", "value")']), $validator->getDescription());
|
||||
$this->assertEquals(true, $validator->isValid(['sleep("$id", 1)']), $validator->getDescription());
|
||||
}
|
||||
|
||||
public function testMissingIndex(): void
|
||||
|
||||
Reference in New Issue
Block a user