Fix bundle model name casing
This commit is contained in:
parent
1ef95a3f01
commit
77e842d2a3
|
@ -21,4 +21,4 @@ var properties = {
|
|||
* Extends from the built in `loopback.Model` type.
|
||||
*/
|
||||
|
||||
var Email = module.exports = Model.extend('email', properties);
|
||||
var Email = module.exports = Model.extend('Email', properties);
|
||||
|
|
|
@ -9,7 +9,7 @@ var modeler = new ModelBuilder();
|
|||
* Define the built in loopback.Model.
|
||||
*/
|
||||
|
||||
var Model = module.exports = modeler.define('model');
|
||||
var Model = module.exports = modeler.define('Model');
|
||||
|
||||
Model.shared = true;
|
||||
|
||||
|
@ -113,4 +113,4 @@ Model.setup = function () {
|
|||
}
|
||||
|
||||
// setup the initial model
|
||||
Model.setup();
|
||||
Model.setup();
|
||||
|
|
|
@ -20,7 +20,7 @@ var properties = {
|
|||
* Extends from the built in `loopback.Model` type.
|
||||
*/
|
||||
|
||||
var Session = module.exports = Model.extend('session', properties);
|
||||
var Session = module.exports = Model.extend('Session', properties);
|
||||
|
||||
/**
|
||||
* Create a cryptographically random session id.
|
||||
|
@ -53,4 +53,4 @@ Session.beforeCreate = function (next, data) {
|
|||
next();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ var properties = {
|
|||
* Extends from the built in `loopback.Model` type.
|
||||
*/
|
||||
|
||||
var User = module.exports = Model.extend('user', properties);
|
||||
var User = module.exports = Model.extend('User', properties);
|
||||
|
||||
/**
|
||||
* Login a user by with the given `credentials`.
|
||||
|
|
Loading…
Reference in New Issue