mirror of
https://github.com/feathericons/feather.git
synced 2023-08-10 21:13:24 +03:00
build: Only copy settings to tmp index
This commit is contained in:
parent
c63f478ff5
commit
21bb9fe6d6
@ -21,15 +21,10 @@ function syncAlgolia() {
|
||||
const index = client.initIndex('icons');
|
||||
const indexTmp = client.initIndex('icons_tmp');
|
||||
|
||||
console.log('Copying target index into temporary index...');
|
||||
client.copyIndex(
|
||||
index.indexName,
|
||||
indexTmp.indexName,
|
||||
['settings', 'synonyms', 'rules'],
|
||||
err => {
|
||||
console.log('Copying target index settings into temporary index...');
|
||||
client.copyIndex(index.indexName, indexTmp.indexName, ['settings'], err => {
|
||||
if (err) throw err;
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
const records = Object.keys(icons).map(name => ({
|
||||
name,
|
||||
|
Loading…
Reference in New Issue
Block a user