File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/Umbraco.Cms.Integrations.Search.Algolia/Services Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,10 @@ namespace Umbraco.Cms.Integrations.Search.Algolia.Services
11
11
public class AlgoliaIndexService : IAlgoliaIndexService
12
12
{
13
13
private readonly AlgoliaSettings _settings ;
14
- private readonly IAlgoliaGeolocationProvider _algoliaGeolocationProvider ;
15
14
16
- public AlgoliaIndexService ( IOptions < AlgoliaSettings > options , IAlgoliaGeolocationProvider algoliaGeolocationProvider )
15
+ public AlgoliaIndexService ( IOptions < AlgoliaSettings > options )
17
16
{
18
17
_settings = options . Value ;
19
- _algoliaGeolocationProvider = algoliaGeolocationProvider ;
20
18
}
21
19
22
20
public async Task < Result > PushData ( string name , List < Record > payload = null )
@@ -32,7 +30,7 @@ await index.SaveObjectsAsync(payload != null
32
30
: new List < Record > {
33
31
new Record {
34
32
ObjectID = Guid . NewGuid ( ) . ToString ( ) ,
35
- GeolocationData = new List < GeolocationEntity > ( ) ,
33
+ GeolocationData = null ,
36
34
Data = new Dictionary < string , object > ( ) }
37
35
} , autoGenerateObjectId : false ) ;
38
36
You can’t perform that action at this time.
0 commit comments