File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -41,11 +41,11 @@ class Rotaract_Club_Finder_Meilisearch_Caller {
41
41
*/
42
42
public function __construct () {
43
43
if (
44
- defined ( 'ROTARACT_MEILISEARCH_CLUBFINDER_API_KEY ' ) &&
45
- defined ( 'ROTARACT_MEILISEARCH_URL ' ) &&
46
- defined ( 'ROTARACT_MEILISEARCH_SEARCHINDEX ' )
44
+ defined ( 'ROTARACT_CLUBFINDER_MEILISEARCH_KEY ' ) &&
45
+ defined ( 'ROTARACT_CLUBFINDER_MEILISEARCH_URL ' ) &&
46
+ defined ( 'ROTARACT_CLUBFINDER_MEILISEARCH_SEARCHINDEX ' )
47
47
) {
48
- $ this ->client = new Client ( ROTARACT_MEILISEARCH_URL , ROTARACT_MEILISEARCH_CLUBFINDER_API_KEY );
48
+ $ this ->client = new Client ( ROTARACT_CLUBFINDER_MEILISEARCH_URL , ROTARACT_MEILISEARCH_CLUBFINDER_KEY );
49
49
}
50
50
}
51
51
@@ -73,7 +73,7 @@ private function meili_request( array $filter ) {
73
73
if ( ! $ this ->isset_client () ) {
74
74
return array ();
75
75
}
76
- return $ this ->client ->index ( ROTARACT_MEILISEARCH_SEARCHINDEX )->search ( '' , $ filter )->getHits ();
76
+ return $ this ->client ->index ( ROTARACT_CLUBFINDER_MEILISEARCH_SEARCHINDEX )->search ( '' , $ filter )->getHits ();
77
77
}
78
78
79
79
/**
You can’t perform that action at this time.
0 commit comments