From 7bdf36acd511c5a53681d457ef383a1b4267fd16 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Tue, 6 Nov 2018 14:24:38 -0500 Subject: [PATCH] Change parseId --- lib/src/core/service.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/src/core/service.dart b/lib/src/core/service.dart index 16a40fad..56e5eef3 100644 --- a/lib/src/core/service.dart +++ b/lib/src/core/service.dart @@ -235,7 +235,7 @@ class Service extends Routable { get('/:id', (req, res) { return req.parseQuery().then((query) { return this.read( - parseId(req.params['id']), + parseId(req.params['id']), mergeMap([ {'query': query}, restProvider, @@ -254,7 +254,7 @@ class Service extends Routable { (req, res) => req.parseBody().then((body) { return req.parseQuery().then((query) { return this.modify( - parseId(req.params['id']), + parseId(req.params['id']), body as Data, mergeMap([ {'query': query}, @@ -275,7 +275,7 @@ class Service extends Routable { (req, res) => req.parseBody().then((body) { return req.parseQuery().then((query) { return this.update( - parseId(req.params['id']), + parseId(req.params['id']), body as Data, mergeMap([ {'query': query}, @@ -293,7 +293,7 @@ class Service extends Routable { (req, res) => req.parseBody().then((body) { return req.parseQuery().then((query) { return this.update( - parseId(req.params['id']), + parseId(req.params['id']), body as Data, mergeMap([ {'query': query}, @@ -327,7 +327,7 @@ class Service extends Routable { delete('/:id', (req, res) { return req.parseQuery().then((query) { return this.remove( - parseId(req.params['id']), + parseId(req.params['id']), mergeMap([ {'query': query}, restProvider,