Commit 90133ea3 authored by Cole Bemis's avatar Cole Bemis

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

parent 1a210808
...@@ -27,10 +27,10 @@ function syncAlgolia() { ...@@ -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);
});
}); });
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment