Skip to content

Commit

Permalink
fix: copySettings func not calling expected base func (#768)
Browse files Browse the repository at this point in the history
## Describe your change

The `copySettings` method was calling base method `copyIndex` instead of `copySettings`, leading to unexpected behavior: all scopes being copied instead of only the settings.
  • Loading branch information
Ant-hem committed Jan 21, 2022
1 parent f8b424e commit f7432af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public interface SearchClientCopyOperations extends SearchClientBase {
* @throws AlgoliaRuntimeException When an error occurred during the serialization
*/
default CopyResponse copySettings(@Nonnull String sourceIndex, @Nonnull String destinationIndex) {
return LaunderThrowable.await(copyIndexAsync(sourceIndex, destinationIndex));
return LaunderThrowable.await(copySettingsAsync(sourceIndex, destinationIndex));
}

/**
Expand Down

0 comments on commit f7432af

Please sign in to comment.