1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 05:09:42 +02:00

Send back saved label after edits

This commit is contained in:
Harvey Kandola 2019-03-03 15:59:13 +00:00
parent a6f8be2928
commit 8332e8a03d

View file

@ -63,6 +63,7 @@ func (h *Handler) Add(w http.ResponseWriter, r *http.Request) {
return return
} }
l.RefID = uniqueid.Generate() l.RefID = uniqueid.Generate()
l.OrgID = ctx.OrgID
ctx.Transaction, err = h.Runtime.Db.Beginx() ctx.Transaction, err = h.Runtime.Db.Beginx()
if err != nil { if err != nil {
@ -155,7 +156,7 @@ func (h *Handler) Update(w http.ResponseWriter, r *http.Request) {
h.Store.Audit.Record(ctx, audit.EventTypeLabelUpdate) h.Store.Audit.Record(ctx, audit.EventTypeLabelUpdate)
response.WriteEmpty(w) response.WriteJSON(w, l)
} }
// Delete removes space label from store and // Delete removes space label from store and