diff --git a/bin/sync-algolia.js b/bin/sync-algolia.js index 9da4d98..5339f82 100644 --- a/bin/sync-algolia.js +++ b/bin/sync-algolia.js @@ -27,10 +27,10 @@ function syncAlgolia() { index.clearIndex((err, content) => { if (err) throw err; console.log(content); - }); - index.addObjects(records, (err, content) => { - if (err) throw err; - console.log(content); + index.addObjects(records, (err, content) => { + if (err) throw err; + console.log(content); + }); }); }