Skip to content

Commit 21bb9fe

Browse files
committed
build: Only copy settings to tmp index
1 parent c63f478 commit 21bb9fe

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

bin/sync-algolia.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,10 @@ function syncAlgolia() {
2121
const index = client.initIndex('icons');
2222
const indexTmp = client.initIndex('icons_tmp');
2323

24-
console.log('Copying target index into temporary index...');
25-
client.copyIndex(
26-
index.indexName,
27-
indexTmp.indexName,
28-
['settings', 'synonyms', 'rules'],
29-
err => {
30-
if (err) throw err;
31-
},
32-
);
24+
console.log('Copying target index settings into temporary index...');
25+
client.copyIndex(index.indexName, indexTmp.indexName, ['settings'], err => {
26+
if (err) throw err;
27+
});
3328

3429
const records = Object.keys(icons).map(name => ({
3530
name,

0 commit comments

Comments
 (0)