From ef3d0bb32aebc872270b36fb3afe7c93569a2cee Mon Sep 17 00:00:00 2001 From: thosakwe Date: Tue, 7 Mar 2017 16:23:09 -0500 Subject: [PATCH] 1.0.5 --- README.md | 2 +- lib/src/rethink_service.dart | 5 ++--- pubspec.yaml | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e207a4a1..1d29fdd4 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/lib/src/rethink_service.dart b/lib/src/rethink_service.dart index 8f88f247..0d3e4aac 100644 --- a/lib/src/rethink_service.dart +++ b/lib/src/rethink_service.dart @@ -64,8 +64,7 @@ class RethinkService extends Service { return query; else { Map q = params['query']; - return q.keys.map((k) => k.toString()).fold(query, - (out, key) { + return q.keys.fold(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}); } }); } diff --git a/pubspec.yaml b/pubspec.yaml index fb46be59..f53df862 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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 environment: