mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
Allow int for float filter queries
This commit is contained in:
parent
39acf18bc3
commit
bd64ace713
1 changed files with 1 additions and 0 deletions
|
|
@ -75,6 +75,7 @@ class Filter extends Base
|
|||
$condition = match ($attributeType) {
|
||||
Database::VAR_RELATIONSHIP => true,
|
||||
Database::VAR_DATETIME => gettype($value) === Database::VAR_STRING,
|
||||
Database::VAR_FLOAT => (gettype($value) === Database::VAR_FLOAT || gettype($value) === Database::VAR_INTEGER),
|
||||
default => gettype($value) === $attributeType
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue