Skip to content
Snippets Groups Projects
Verified Commit e9fafe9b authored by Mar0xy's avatar Mar0xy
Browse files

test: debug meilisearch not being found

parent 86db03cd
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ export class SearchService {
private idService: IdService,
) {
if (meilisearch) {
this.meilisearchNoteIndex = meilisearch.index(`${config.meilisearch!.index}---notes`);
this.meilisearchNoteIndex = meilisearch.index(`${this.config.meilisearch?.index}---notes`);
this.meilisearchNoteIndex.updateSettings({
searchableAttributes: [
'text',
......@@ -103,8 +103,8 @@ export class SearchService {
});
}
if (config.meilisearch?.scope) {
this.meilisearchIndexScope = config.meilisearch.scope;
if (this.config.meilisearch?.scope) {
this.meilisearchIndexScope = this.config.meilisearch.scope;
}
}
......@@ -113,8 +113,6 @@ export class SearchService {
if (note.text == null && note.cw == null) return;
if (!['home', 'public'].includes(note.visibility)) return;
console.error(note);
if (this.meilisearch) {
switch (this.meilisearchIndexScope) {
case 'global':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment