counter: api should update goals

This commit is contained in:
Chris Sexton 2021-11-18 16:43:50 -05:00 committed by Chris Sexton
parent 3343a98802
commit fd670339c0
1 changed files with 1 additions and 0 deletions

View File

@ -87,6 +87,7 @@ func (p *CounterPlugin) mkIncrementAPI(delta int) func(w http.ResponseWriter, r
for _, ch := range p.cfg.GetArray("channels", []string{}) { for _, ch := range p.cfg.GetArray("channels", []string{}) {
p.b.Send(p.b.DefaultConnector(), bot.Message, ch, msg) p.b.Send(p.b.DefaultConnector(), bot.Message, ch, msg)
} }
sendUpdate(req, userName, itemName, item.Count)
j, _ := json.Marshal(struct{ Status bool }{true}) j, _ := json.Marshal(struct{ Status bool }{true})
fmt.Fprint(w, string(j)) fmt.Fprint(w, string(j))
} }