make plugins enabled by super start before monitors

axis-lock
Moe 2023-07-14 22:31:33 -07:00
parent 8e066ed016
commit e2235d286a
2 changed files with 5 additions and 5 deletions

View File

@ -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();
})

View File

@ -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({