make plugins enabled by super start before monitors
parent
8e066ed016
commit
e2235d286a
|
@ -574,7 +574,7 @@ module.exports = async (s,config,lang,app,io,currentUse) => {
|
|||
s.closeJsonResponse(res,{ok: true, readme: readme})
|
||||
},res,req)
|
||||
})
|
||||
s.onProcessReady(async () => {
|
||||
s.beforeMonitorsLoadedOnStartup(async () => {
|
||||
// Initialize Modules on Start
|
||||
await initializeAllModules();
|
||||
})
|
||||
|
|
|
@ -48,10 +48,10 @@ module.exports = function(s,config,lang,io){
|
|||
}
|
||||
var loadedAccounts = []
|
||||
var foundMonitors = []
|
||||
var loadMonitors = function(callback){
|
||||
s.beforeMonitorsLoadedOnStartupExtensions.forEach(function(extender){
|
||||
extender()
|
||||
})
|
||||
var loadMonitors = async function(callback){
|
||||
for (let i = 0; i < s.beforeMonitorsLoadedOnStartupExtensions.length; i++) {
|
||||
await s.beforeMonitorsLoadedOnStartupExtensions[i]()
|
||||
}
|
||||
s.systemLog(lang.startUpText4)
|
||||
//preliminary monitor start
|
||||
s.knexQuery({
|
||||
|
|
Loading…
Reference in New Issue