aboutsummaryrefslogtreecommitdiffstats
path: root/cache/bug_subcache.go
diff options
context:
space:
mode:
Diffstat (limited to 'cache/bug_subcache.go')
-rw-r--r--cache/bug_subcache.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cache/bug_subcache.go b/cache/bug_subcache.go
index 14b56cdc..920fe1dc 100644
--- a/cache/bug_subcache.go
+++ b/cache/bug_subcache.go
@@ -44,7 +44,7 @@ func NewRepoCacheBug(repo repository.ClockedRepo,
sc := NewSubCache[*bug.Bug, *BugExcerpt, *BugCache](
repo, resolvers, getUserIdentity,
makeCached, NewBugExcerpt, makeIndexData, actions,
- "bug", "bugs",
+ bug.Typename, bug.Namespace,
formatVersion, defaultMaxLoadedBugs,
)
@@ -124,7 +124,7 @@ func (c *RepoCacheBug) Query(q *query.Query) ([]entity.Id, error) {
if q.Search != nil {
foundBySearch = map[entity.Id]*BugExcerpt{}
- index, err := c.repo.GetIndex("bug")
+ index, err := c.repo.GetIndex("bugs")
if err != nil {
return nil, err
}