Skip to content

Commit

Permalink
fix(search): use correct filter on document list
Browse files Browse the repository at this point in the history
  • Loading branch information
Yelinz committed Jan 29, 2025
1 parent 84219f2 commit f9ec7e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addon/controllers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class IndexController extends Controller {
if (this.config && this.config.modelMetaFilters?.document) {
filters = {
...filters,
metainfo: JSON.stringify(this.config.modelMetaFilters.document),
documentMetainfo: JSON.stringify(this.config.modelMetaFilters.document),
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module("Unit | Controller | index", function (hooks) {
assert.deepEqual(controller.documentFilters, {
activeGroup: "group",
categories: 1,
metainfo: JSON.stringify([{ key: "instance_id", value: "1" }]),
documentMetainfo: JSON.stringify([{ key: "instance_id", value: "1" }]),
query: "test",
tags: undefined,
marks: undefined,
Expand Down

0 comments on commit f9ec7e4

Please sign in to comment.