feat: revert back to using index as storage
1 file changed, 1 insertion(+), 2 deletions(-)
changed files
M internal/server/mux.go → internal/server/mux.go
@@ -71,7 +71,6 @@ if options.ReadIndex == nil { return nil, fault.New("read index is nil") } index := options.ReadIndex - store := options.Store sortSources(cfg.Importer.Sources) assets, err := frontend.New() if err != nil {@@ -233,7 +232,7 @@ return } importerSingular := importerType.Singular() - doc, err := store.GetDocument(source, r.PathValue("id")) + doc, err := index.GetDocument(r.Context(), source, r.PathValue("id")) if err != nil { if ftag.Get(err) == ftag.NotFound { log.Warn("document not found", "source", source.Key, "id", r.PathValue("id"))