build(algolia): Add objects *after* clearing index

This commit is contained in:
Cole Bemis 2018-05-17 23:44:35 -07:00
parent 1a210808c5
commit 90133ea33e

View File

@ -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);
});
}); });
} }