From d638b29f552e42146bc5973ead127f82f0eee54b Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Sun, 27 Jul 2014 00:41:43 -0700 Subject: [PATCH] Fix https://github.com/strongloop/loopback/issues/413 --- lib/registry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/registry.js b/lib/registry.js index 6e0289e2..3cad9469 100644 --- a/lib/registry.js +++ b/lib/registry.js @@ -243,7 +243,7 @@ registry.createDataSource = function (name, options) { var BaseModel = settings.base || settings.super; if (!BaseModel) { // Check the connector types - var connectorTypes = ds.connector && ds.connector.getTypes(); + var connectorTypes = ds.getTypes(); if (Array.isArray(connectorTypes) && connectorTypes.indexOf('db') !== -1) { // Only set up the base model to PersistedModel if the connector is DB BaseModel = self.PersistedModel;