From c4a0353f95a85fec9f79fb8d3cb334a96e611679 Mon Sep 17 00:00:00 2001 From: Prabhu Date: Mon, 17 Dec 2018 17:09:36 +0530 Subject: [PATCH] Fix in get request --- lib/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index c751cdf..81ad57d 100644 --- a/lib/index.js +++ b/lib/index.js @@ -105,7 +105,8 @@ class Service { // Attach 'where' constraints, if any were used. const q = Object.assign({ raw: this.raw, - where: Object.assign({[this.id]: id}, where) + where: Object.assign({[this.id]: id}, where), + order: [] }, params.sequelize); let Model = this.applyScope(params);