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

Make content linker compat with new attachment API

Moved fom /attachments to /attachment API endpoint name.
This commit is contained in:
Harvey Kandola 2018-12-21 17:38:55 +00:00
parent 60f8cb7b5b
commit 92cb03a1db
7 changed files with 32 additions and 19 deletions

View file

@ -97,7 +97,6 @@ func (h *Handler) GetLinkCandidates(w http.ResponseWriter, r *http.Request) {
if len(files) == 0 {
files = []attachment.Attachment{}
}
if err != nil && err != sql.ErrNoRows {
response.WriteServerError(w, method, err)
h.Runtime.Log.Error(method, err)