mirror of
https://github.com/documize/community.git
synced 2025-07-21 06:09:42 +02:00
Remove duplicate response header write
This commit is contained in:
parent
c5acaae677
commit
97cc5374f0
1 changed files with 0 additions and 1 deletions
|
@ -294,7 +294,6 @@ func (h *Handler) GetMeta(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
meta, err := h.Store.Page.GetPageMeta(ctx, pageID)
|
meta, err := h.Store.Page.GetPageMeta(ctx, pageID)
|
||||||
if err == sql.ErrNoRows {
|
if err == sql.ErrNoRows {
|
||||||
response.WriteNotFoundError(w, method, pageID)
|
|
||||||
h.Runtime.Log.Info(method + " no record")
|
h.Runtime.Log.Info(method + " no record")
|
||||||
meta = page.Meta{}
|
meta = page.Meta{}
|
||||||
response.WriteJSON(w, meta)
|
response.WriteJSON(w, meta)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue