Minor touch-ups
This commit is contained in:
parent
1a4e8863ef
commit
f1f692a8a5
|
@ -22,9 +22,9 @@ exports.apply = function applyPlugin(name, modelClass, options) {
|
|||
var definePlugin = exports.define = function definePlugin(name, fn) {
|
||||
if (typeof fn === 'function') {
|
||||
if (registry[name]) {
|
||||
debug('Overwriting plugin: %s', name);
|
||||
debug('Duplicate plugin: %s', name);
|
||||
} else {
|
||||
debug('Defined plugin: %s', name);
|
||||
debug('Defining plugin: %s', name);
|
||||
}
|
||||
registry[name] = fn;
|
||||
} else {
|
||||
|
|
|
@ -20,4 +20,4 @@ module.exports = function timestamps(Model, options) {
|
|||
if (creation) data.createdAt = data.updatedAt;
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
|
|
@ -41,4 +41,4 @@ describe('Model class', function () {
|
|||
});
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue