From 7add860d83ba0619a77185a1e2a840df3cfb1a4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=A0trauch?= Date: Wed, 9 Feb 2022 16:54:30 +0100 Subject: [PATCH] Quick fix of update handler --- handlers_nats.go | 5 +++++ 1 file changed, 5 insertions(+) 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(),