This commit is contained in:
ThatOneCalculator 2022-04-03 17:08:17 -07:00
parent 79b9e6d4ba
commit b1f3e412bb

View file

@ -1,11 +1,11 @@
import sonic from "./sonic";
import sonic from './sonic'; import es from "./elasticsearch";
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 // 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]; 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;