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:
parent
a6f8be2928
commit
8332e8a03d
1 changed files with 2 additions and 1 deletions
|
@ -63,6 +63,7 @@ func (h *Handler) Add(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
l.RefID = uniqueid.Generate()
|
||||
l.OrgID = ctx.OrgID
|
||||
|
||||
ctx.Transaction, err = h.Runtime.Db.Beginx()
|
||||
if err != nil {
|
||||
|
@ -155,7 +156,7 @@ func (h *Handler) Update(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
h.Store.Audit.Record(ctx, audit.EventTypeLabelUpdate)
|
||||
|
||||
response.WriteEmpty(w)
|
||||
response.WriteJSON(w, l)
|
||||
}
|
||||
|
||||
// Delete removes space label from store and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue