This commit is contained in:
thosakwe 2017-03-07 16:23:09 -05:00
parent 705c1d8b27
commit ef3d0bb32a
3 changed files with 4 additions and 5 deletions

View file

@ -1,6 +1,6 @@
# rethink # 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) [![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. RethinkDB-enabled services for the Angel framework.

View file

@ -64,8 +64,7 @@ class RethinkService extends Service {
return query; return query;
else { else {
Map q = params['query']; Map q = params['query'];
return q.keys.map((k) => k.toString()).fold<RqlQuery>(query, return q.keys.fold<RqlQuery>(query, (out, key) {
(out, key) {
var val = q[key]; var val = q[key];
if (val is RequestContext || if (val is RequestContext ||
@ -74,7 +73,7 @@ class RethinkService extends Service {
val is Providers) val is Providers)
return out; return out;
else { else {
return out.filter({k.toString(): val}); return out.filter({key.toString(): val});
} }
}); });
} }

View file

@ -1,5 +1,5 @@
name: angel_rethink name: angel_rethink
version: 1.0.4 version: 1.0.5
description: RethinkDB-enabled services for the Angel framework. description: RethinkDB-enabled services for the Angel framework.
author: Tobe O <thosakwe@gmail.com> author: Tobe O <thosakwe@gmail.com>
environment: environment: