Instantiates API GW after system service
Fixes workflow filter panics after reloading API GW routes
This commit is contained in:
parent
83763b49ce
commit
124b9e2a05
@ -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
|
||||
//
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user