diff --git a/packages/backend/src/db/searchClient.ts b/packages/backend/src/db/searchClient.ts index 494918bed..c643cf353 100644 --- a/packages/backend/src/db/searchClient.ts +++ b/packages/backend/src/db/searchClient.ts @@ -1,11 +1,11 @@ - -import sonic from './sonic'; -import es from './elasticsearch'; +import sonic from "./sonic"; +import es from "./elasticsearch"; // This file is just to make it easier to add new drivers in the future, simply import searchClient and whatever driver is available is used export const clients = [sonic, es]; -const client = clients.find(client => client && client.available) || null; +const searchClient = + clients.find((client) => client && client.available) || null; -export default client; +export default searchClient;