From cb553ef084dde8c5f725cbb188db29c1cef91dd2 Mon Sep 17 00:00:00 2001 From: t2t2 Date: Mon, 30 May 2016 02:32:18 +0300 Subject: [PATCH] Use internal methods in create --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 212bcf0..23380e4 100644 --- a/src/index.js +++ b/src/index.js @@ -159,7 +159,7 @@ class Service { } _create(data, params) { - return this.db().insert(data, this.id).then(rows => this.get(rows[0], params)) + return this.db().insert(data, this.id).then(rows => this._get(rows[0], params)) .catch(errorHandler); }