@@ -338,8 +338,8 @@ func (s *batchService) Import(
338
338
}
339
339
340
340
// Post the profile to the index service.
341
- postNodeURL := config .Conf .Index .URL + "/v2/nodes"
342
- profileURL := config .Conf .DataProxy .URL + "/v1/profiles/" + profileCUID
341
+ postNodeURL := config .Values .Index .URL + "/v2/nodes"
342
+ profileURL := config .Values .DataProxy .URL + "/v1/profiles/" + profileCUID
343
343
nodeID , err := importutil .PostIndex (postNodeURL , profileURL )
344
344
if err != nil {
345
345
return batchID , - 1 , nil , fmt .Errorf (
@@ -495,8 +495,8 @@ func (s *batchService) Edit(
495
495
}
496
496
497
497
// Import profile to Index
498
- postNodeURL := config .Conf .Index .URL + "/v2/nodes"
499
- profileURL := config .Conf .DataProxy .URL + "/v1/profiles/" + profileCuid
498
+ postNodeURL := config .Values .Index .URL + "/v2/nodes"
499
+ profileURL := config .Values .DataProxy .URL + "/v1/profiles/" + profileCuid
500
500
nodeID , err := importutil .PostIndex (postNodeURL , profileURL )
501
501
if err != nil {
502
502
return line , nil , errors .New (
@@ -533,7 +533,7 @@ func (s *batchService) Edit(
533
533
// Delete profiles from Index
534
534
if profile ["is_posted" ].(bool ) {
535
535
nodeID := profile ["node_id" ].(string )
536
- deleteNodeURL := config .Conf .Index .URL + "/v2/nodes/" + nodeID
536
+ deleteNodeURL := config .Values .Index .URL + "/v2/nodes/" + nodeID
537
537
err := importutil .DeleteIndex (deleteNodeURL , nodeID )
538
538
if err != nil {
539
539
return - 1 , nil , errors .New (
@@ -573,7 +573,7 @@ func (s *batchService) Delete(userID string, batchID string) error {
573
573
for _ , profile := range profiles {
574
574
if profile ["is_posted" ].(bool ) {
575
575
nodeID := profile ["node_id" ].(string )
576
- deleteNodeURL := config .Conf .Index .URL + "/v2/nodes/" + nodeID
576
+ deleteNodeURL := config .Values .Index .URL + "/v2/nodes/" + nodeID
577
577
err := importutil .DeleteIndex (deleteNodeURL , nodeID )
578
578
if err != nil {
579
579
return errors .New (
0 commit comments