fixed railway integration
This commit is contained in:
parent
9fed918db8
commit
67e5845369
2
index.js
2
index.js
|
@ -7,7 +7,7 @@ exports.Validatable = require('./lib/validatable').Validatable;
|
||||||
exports.BaseSQL = require('./lib/sql');
|
exports.BaseSQL = require('./lib/sql');
|
||||||
|
|
||||||
exports.init = function (rw) {
|
exports.init = function (rw) {
|
||||||
if (typeof rw === 'string') {
|
if (global.railway) {
|
||||||
railway.orm = exports;
|
railway.orm = exports;
|
||||||
} else {
|
} else {
|
||||||
rw.orm = {Schema: exports.Schema, AbstractClass: exports.AbstractClass};
|
rw.orm = {Schema: exports.Schema, AbstractClass: exports.AbstractClass};
|
||||||
|
|
Loading…
Reference in New Issue