mirror of
https://github.com/strapi/strapi.git
synced 2025-12-29 16:16:20 +00:00
Merge pull request #16351 from strapi/fix/prioritize-admin-bootsrap
This commit is contained in:
commit
333932fce7
@ -536,17 +536,17 @@ class Strapi {
|
||||
// plugins
|
||||
await this.container.get('modules')[lifecycleName]();
|
||||
|
||||
// user
|
||||
const userLifecycleFunction = this.app && this.app[lifecycleName];
|
||||
if (isFunction(userLifecycleFunction)) {
|
||||
await userLifecycleFunction({ strapi: this });
|
||||
}
|
||||
|
||||
// admin
|
||||
const adminLifecycleFunction = this.admin && this.admin[lifecycleName];
|
||||
if (isFunction(adminLifecycleFunction)) {
|
||||
await adminLifecycleFunction({ strapi: this });
|
||||
}
|
||||
|
||||
// user
|
||||
const userLifecycleFunction = this.app && this.app[lifecycleName];
|
||||
if (isFunction(userLifecycleFunction)) {
|
||||
await userLifecycleFunction({ strapi: this });
|
||||
}
|
||||
}
|
||||
|
||||
getModel(uid) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user