From fd670339c059633878326fb56471b49a0cdc2646 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Thu, 18 Nov 2021 16:43:50 -0500 Subject: [PATCH] counter: api should update goals --- plugins/counter/api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/counter/api.go b/plugins/counter/api.go index fc6a0fa..610768e 100644 --- a/plugins/counter/api.go +++ b/plugins/counter/api.go @@ -87,6 +87,7 @@ func (p *CounterPlugin) mkIncrementAPI(delta int) func(w http.ResponseWriter, r for _, ch := range p.cfg.GetArray("channels", []string{}) { p.b.Send(p.b.DefaultConnector(), bot.Message, ch, msg) } + sendUpdate(req, userName, itemName, item.Count) j, _ := json.Marshal(struct{ Status bool }{true}) fmt.Fprint(w, string(j)) }