use DB connector instead of web API #158
1 changed files with 4 additions and 0 deletions
|
@ -28,7 +28,11 @@ const eclient = new elasticsearch.Client({
|
||||||
stream: loggerStream,
|
stream: loggerStream,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const queue = new ElasticQueue({elastic: eclient});
|
const queue = new ElasticQueue({elastic: eclient});
|
||||||
|
queue.on('drain', function () {
|
||||||
|
console.log('elasticsearch queue is drained');
|
||||||
|
});
|
||||||
|
|
||||||
// Check that our syncState file exist.
|
// Check that our syncState file exist.
|
||||||
fileExists(path.join(appRoot.path, 'syncState.json'), (err, exists) => {
|
fileExists(path.join(appRoot.path, 'syncState.json'), (err, exists) => {
|
||||||
|
|
Loading…
Reference in a new issue