Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit f309945

Browse files
author
Laurent Curau
authored
Merge pull request #523 from alphagov/laurent/fix-error
Fix undefined local variable error in datasets indexer
2 parents a5c23aa + 07f1926 commit f309945

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/services/datasets_indexer_service.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def create_new_index
125125

126126
def bulk_index(datasets)
127127
Dataset.__elasticsearch__.client.bulk(
128-
index: index_name,
128+
index: new_index_name,
129129
type: ::Dataset.__elasticsearch__.document_type,
130130
body: prepare_records(datasets)
131131
)

0 commit comments

Comments
 (0)