Skip to content

Commit f7432af

Browse files
authored
fix: copySettings func not calling expected base func (#768)
## 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.
1 parent f8b424e commit f7432af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

algoliasearch-core/src/main/java/com/algolia/search/SearchClientCopyOperations.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public interface SearchClientCopyOperations extends SearchClientBase {
2828
* @throws AlgoliaRuntimeException When an error occurred during the serialization
2929
*/
3030
default CopyResponse copySettings(@Nonnull String sourceIndex, @Nonnull String destinationIndex) {
31-
return LaunderThrowable.await(copyIndexAsync(sourceIndex, destinationIndex));
31+
return LaunderThrowable.await(copySettingsAsync(sourceIndex, destinationIndex));
3232
}
3333

3434
/**

0 commit comments

Comments
 (0)