From aef8574e8e0e633a6e392274da0cf361a1e1ec1c Mon Sep 17 00:00:00 2001 From: Richard Gustin Date: Sat, 14 Jun 2014 04:56:33 +1000 Subject: [PATCH] hotfix(model): Fixed issue where it would only list one model in listAction of controller --- lib/classes/Model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/classes/Model.js b/lib/classes/Model.js index 97889ad..50c020f 100644 --- a/lib/classes/Model.js +++ b/lib/classes/Model.js @@ -266,7 +266,7 @@ module.exports = Class.extend( if ( modelType === 'ORM' ) { that._model - .find( { where: options } ) + .findAll( { where: options } ) .success( that.callback( callback, null ) ) .error( callback );