api/helpers/algoliaService.ts
Function algoliaService
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function algoliaService(): () => AlgoliaService {
if (config.get("SUPPRESS_ALGOLIA") === "true") {
log("warn", "Algolia indexing manually suppressed");
return () => stubAlgoliaService;
}