salix/loopback/server/boot/orm.js

7 lines
161 B
JavaScript
Raw Permalink Normal View History

2024-09-04 07:24:07 +00:00
module.exports = async function(app) {
if (!app.orm) {
const ormConfig = await app.models.OrmConfig.findOne();
app.orm = ormConfig;
}
};