1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-20 13:49:42 +02:00
This commit is contained in:
HarveyKandola 2019-06-20 15:28:34 +01:00
parent ae923e7df1
commit 411f64c359

View file

@ -97,7 +97,7 @@ func (h *Handler) Add(w http.ResponseWriter, r *http.Request) {
// Get returns requested reusable content block. // Get returns requested reusable content block.
func (h *Handler) Get(w http.ResponseWriter, r *http.Request) { func (h *Handler) Get(w http.ResponseWriter, r *http.Request) {
method := "block.add" method := "block.get"
ctx := domain.GetRequestContext(r) ctx := domain.GetRequestContext(r)
blockID := request.Param(r, "blockID") blockID := request.Param(r, "blockID")
@ -135,7 +135,6 @@ func (h *Handler) GetBySpace(w http.ResponseWriter, r *http.Request) {
if len(b) == 0 { if len(b) == 0 {
b = []block.Block{} b = []block.Block{}
} }
if err != nil { if err != nil {
response.WriteServerError(w, method, err) response.WriteServerError(w, method, err)
h.Runtime.Log.Error(method, err) h.Runtime.Log.Error(method, err)