diff --git a/handlers_nats.go b/handlers_nats.go index 263661d..01f5a69 100644 --- a/handlers_nats.go +++ b/handlers_nats.go @@ -241,6 +241,11 @@ func updateEventHandler(m *nats.Msg, message *RequestMessage) error { return err } + // This is small inconsistency because the app name is not coming from the admin which this line fixes. + // TODO: We should probably somehow fixed this for this and all other endpoints too. Message app name and payload + // TODO: app name have to always the same. + appTemplate.Name = message.AppName + processor := glue.Processor{ AppName: message.AppName, DB: common.GetDBConnection(),