Merge pull request #12 from Pierre48/master

Check if query is null
This commit is contained in:
Tobe Osakwe 2019-09-02 13:12:29 -04:00 committed by GitHub
commit a59f185092
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,7 @@ class MongoService extends Service<String, Map<String, dynamic>> {
} else if (key == 'query' && } else if (key == 'query' &&
(allowQuery == true || !params.containsKey('provider'))) { (allowQuery == true || !params.containsKey('provider'))) {
var query = params[key] as Map; var query = params[key] as Map;
query.forEach((key, v) { query?.forEach((key, v) {
var value = v is Map<String, dynamic> ? _filterNoQuery(v) : v; var value = v is Map<String, dynamic> ? _filterNoQuery(v) : v;
if (!_NO_QUERY.contains(key) && if (!_NO_QUERY.contains(key) &&