3
0

Instantiates API GW after system service

Fixes workflow filter panics after reloading API GW routes
This commit is contained in:
Vivek Patel 2021-10-06 19:33:55 +05:30
parent 83763b49ce
commit 124b9e2a05

View File

@ -358,12 +358,6 @@ func (app *CortezaApp) InitServices(ctx context.Context) (err error) {
return err
}
// Initialize API GW bits
apigw.Setup(options.Apigw(), app.Log, app.Store)
if err = apigw.Service().Reload(ctx); err != nil {
return err
}
if app.Opt.Messagebus.Enabled {
// initialize all the queue handlers
messagebus.Service().Init(ctx, app.Store)
@ -418,6 +412,12 @@ func (app *CortezaApp) InitServices(ctx context.Context) (err error) {
corredor.Service().SetUserFinder(sysService.DefaultUser)
corredor.Service().SetRoleFinder(sysService.DefaultRole)
// Initialize API GW bits
apigw.Setup(options.Apigw(), app.Log, app.Store)
if err = apigw.Service().Reload(ctx); err != nil {
return err
}
if app.Opt.Federation.Enabled {
// Initializes federation services
//