Skip to content

Commit

Permalink
Merge pull request #1062 from metabrainz/catch-indexing-errors
Browse files Browse the repository at this point in the history
fix(search): Catch search indexing errors
  • Loading branch information
MonkeyDo authored Feb 6, 2024
2 parents a6aef08 + ced6994 commit cc63f20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/helpers/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export function indexEntity(entity) {
id: entity.bbid,
index: _index,
type: snakeCase(entity.type)
});
}).catch(error => { log.error('error indexing entity for search:', error); });
}
}

Expand All @@ -263,7 +263,7 @@ export function deleteEntity(entity) {
id: entity.bbid,
index: _index,
type: snakeCase(entity.type)
});
}).catch(error => { log.error('error deleting entity from index:', error); });
}

export function refreshIndex() {
Expand Down

0 comments on commit cc63f20

Please sign in to comment.