Fix
This commit is contained in:
		
							parent
							
								
									79b9e6d4ba
								
							
						
					
					
						commit
						b1f3e412bb
					
				
					 1 changed files with 5 additions and 5 deletions
				
			
		|  | @ -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; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue