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:
parent
60f8cb7b5b
commit
92cb03a1db
7 changed files with 32 additions and 19 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue