Merge pull request #168 from saschagehlich/railway_fix
fixed railway integration
This commit is contained in:
commit
2dd747e678
2
index.js
2
index.js
|
@ -7,7 +7,7 @@ exports.Validatable = require('./lib/validatable').Validatable;
|
|||
exports.BaseSQL = require('./lib/sql');
|
||||
|
||||
exports.init = function (rw) {
|
||||
if (typeof rw === 'string') {
|
||||
if (global.railway) {
|
||||
railway.orm = exports;
|
||||
} else {
|
||||
rw.orm = {Schema: exports.Schema, AbstractClass: exports.AbstractClass};
|
||||
|
|
Loading…
Reference in New Issue