1.0.5
This commit is contained in:
parent
705c1d8b27
commit
ef3d0bb32a
3 changed files with 4 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
# rethink
|
||||
|
||||
[![version 1.0.4](https://img.shields.io/badge/pub-1.0.4-brightgreen.svg)](https://pub.dartlang.org/packages/angel_rethink)
|
||||
[![version 1.0.5](https://img.shields.io/badge/pub-1.0.5-brightgreen.svg)](https://pub.dartlang.org/packages/angel_rethink)
|
||||
[![build status](https://travis-ci.org/angel-dart/rethink.svg?branch=master)](https://travis-ci.org/angel-dart/rethink)
|
||||
|
||||
RethinkDB-enabled services for the Angel framework.
|
||||
|
|
|
@ -64,8 +64,7 @@ class RethinkService extends Service {
|
|||
return query;
|
||||
else {
|
||||
Map q = params['query'];
|
||||
return q.keys.map((k) => k.toString()).fold<RqlQuery>(query,
|
||||
(out, key) {
|
||||
return q.keys.fold<RqlQuery>(query, (out, key) {
|
||||
var val = q[key];
|
||||
|
||||
if (val is RequestContext ||
|
||||
|
@ -74,7 +73,7 @@ class RethinkService extends Service {
|
|||
val is Providers)
|
||||
return out;
|
||||
else {
|
||||
return out.filter({k.toString(): val});
|
||||
return out.filter({key.toString(): val});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel_rethink
|
||||
version: 1.0.4
|
||||
version: 1.0.5
|
||||
description: RethinkDB-enabled services for the Angel framework.
|
||||
author: Tobe O <thosakwe@gmail.com>
|
||||
environment:
|
||||
|
|
Loading…
Reference in a new issue