diff options
author | Michael Muré <batolettre@gmail.com> | 2022-12-22 23:19:31 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2022-12-23 01:41:03 +0100 |
commit | 95911100823b5c809225d664de74ad2d64e91972 (patch) | |
tree | c352848904d82b046646b4074f26b0ce5235fa40 /cache/bug_subcache.go | |
parent | d65e8837aa7bb1a6abb6892b9f2664e1b7edb02e (diff) | |
download | git-bug-95911100823b5c809225d664de74ad2d64e91972.tar.gz |
cache: fix some bugs after refactor
Diffstat (limited to 'cache/bug_subcache.go')
-rw-r--r-- | cache/bug_subcache.go | 4 |
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 } |