mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
Make API work with new schema
This commit is contained in:
parent
28342fcf5e
commit
4f0cc2f616
48 changed files with 1218 additions and 1097 deletions
|
@ -111,7 +111,7 @@ func (h *Handler) RefreshSections(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
for _, pm := range meta {
|
||||
// Grab the page because we need content type and
|
||||
page, err2 := h.Store.Page.Get(ctx, pm.PageID)
|
||||
page, err2 := h.Store.Page.Get(ctx, pm.SectionID)
|
||||
if err2 == sql.ErrNoRows {
|
||||
continue
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue