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 index = client.initIndex('icons');
|
||||||
const indexTmp = client.initIndex('icons_tmp');
|
const indexTmp = client.initIndex('icons_tmp');
|
||||||
|
|
||||||
console.log('Copying target index into temporary index...');
|
console.log('Copying target index settings into temporary index...');
|
||||||
client.copyIndex(
|
client.copyIndex(index.indexName, indexTmp.indexName, ['settings'], err => {
|
||||||
index.indexName,
|
if (err) throw err;
|
||||||
indexTmp.indexName,
|
});
|
||||||
['settings', 'synonyms', 'rules'],
|
|
||||||
err => {
|
|
||||||
if (err) throw err;
|
|
||||||
},
|
|
||||||
);
|
|
||||||
|
|
||||||
const records = Object.keys(icons).map(name => ({
|
const records = Object.keys(icons).map(name => ({
|
||||||
name,
|
name,
|
||||||
|
Loading…
Reference in New Issue
Block a user