Merge branch 'release/2.0.2' into production
This commit is contained in:
commit
2d17dba1b2
|
@ -243,7 +243,7 @@ registry.createDataSource = function (name, options) {
|
||||||
var BaseModel = settings.base || settings.super;
|
var BaseModel = settings.base || settings.super;
|
||||||
if (!BaseModel) {
|
if (!BaseModel) {
|
||||||
// Check the connector types
|
// Check the connector types
|
||||||
var connectorTypes = ds.connector && ds.connector.getTypes();
|
var connectorTypes = ds.getTypes();
|
||||||
if (Array.isArray(connectorTypes) && connectorTypes.indexOf('db') !== -1) {
|
if (Array.isArray(connectorTypes) && connectorTypes.indexOf('db') !== -1) {
|
||||||
// Only set up the base model to PersistedModel if the connector is DB
|
// Only set up the base model to PersistedModel if the connector is DB
|
||||||
BaseModel = self.PersistedModel;
|
BaseModel = self.PersistedModel;
|
||||||
|
|
|
@ -177,7 +177,7 @@ describe('app', function() {
|
||||||
it('starts http server', function(done) {
|
it('starts http server', function(done) {
|
||||||
var app = loopback();
|
var app = loopback();
|
||||||
app.set('port', 0);
|
app.set('port', 0);
|
||||||
app.get('/', function(req, res) { res.send(200, 'OK'); });
|
app.get('/', function(req, res) { res.status(200).send('OK'); });
|
||||||
|
|
||||||
var server = app.listen();
|
var server = app.listen();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue