File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ useContainer(Container); // eslint-disable-line react-hooks/rules-of-hooks
4141
4242 // Initialize Search Service
4343 const searchService = Container . get ( SearchService ) ;
44- await searchService . setupIndexes ( ) ;
44+ await searchService . setupSearch ( ) ;
4545
4646 // Add crons to DI container
4747 const CronServices = [ DigestCron ] ;
Original file line number Diff line number Diff line change @@ -59,12 +59,12 @@ export class SearchService {
5959 } ) ;
6060 } ;
6161
62- public setupIndexes = async ( ) : Promise < void > => {
63- await this . ensureIndexes ( ) ;
62+ public setupSearch = async ( ) : Promise < void > => {
63+ await this . setupIndexes ( ) ;
6464 await this . updateFilterableAttributes ( ) ;
6565 } ;
6666
67- private ensureIndexes = async ( ) : Promise < void > => {
67+ private setupIndexes = async ( ) : Promise < void > => {
6868 await this . meilisearch . createIndex ( "project" , {
6969 primaryKey : "id" ,
7070 } ) ;
You can’t perform that action at this time.
0 commit comments