mirror of
https://github.com/strapi/strapi.git
synced 2025-09-23 15:29:27 +00:00
feat: expose mongoose connections
Signed-off-by: Jim LAURIE <j.laurie6993@gmail.com>
This commit is contained in:
parent
0f64aec794
commit
489d2e33fd
@ -125,6 +125,8 @@ module.exports = function(strapi) {
|
|||||||
connection,
|
connection,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
_.set(strapi, `connections.${connectionName}`, instance);
|
||||||
|
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
mountComponents(connectionName, ctx),
|
mountComponents(connectionName, ctx),
|
||||||
mountApis(connectionName, ctx),
|
mountApis(connectionName, ctx),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user