Skip to content

Commit 90133ea

Browse files
committed
build(algolia): Add objects *after* clearing index
1 parent 1a21080 commit 90133ea

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

bin/sync-algolia.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ function syncAlgolia() {
2727
index.clearIndex((err, content) => {
2828
if (err) throw err;
2929
console.log(content);
30-
});
3130

32-
index.addObjects(records, (err, content) => {
33-
if (err) throw err;
34-
console.log(content);
31+
index.addObjects(records, (err, content) => {
32+
if (err) throw err;
33+
console.log(content);
34+
});
3535
});
3636
}

0 commit comments

Comments
 (0)