mirror of
https://github.com/feathericons/feather.git
synced 2023-08-10 21:13:24 +03:00
build(algolia): Add objects *after* clearing index
This commit is contained in:
parent
1a210808c5
commit
90133ea33e
@ -27,10 +27,10 @@ function syncAlgolia() {
|
|||||||
index.clearIndex((err, content) => {
|
index.clearIndex((err, content) => {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
console.log(content);
|
console.log(content);
|
||||||
});
|
|
||||||
|
|
||||||
index.addObjects(records, (err, content) => {
|
index.addObjects(records, (err, content) => {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
console.log(content);
|
console.log(content);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user