mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
SEARCH-538
- Review comments
This commit is contained in:
parent
252047891e
commit
63b2fe25bd
@ -24,7 +24,9 @@ let makeBoundTimedCollector = function(isIndexing, timeout, callback) {
|
||||
clearTimeout(timer);
|
||||
timer = null;
|
||||
resetQueue();
|
||||
callback(JSON.stringify(queue));
|
||||
if (queue) {
|
||||
callback(JSON.stringify(queue));
|
||||
}
|
||||
}
|
||||
|
||||
function getQueue(){
|
||||
|
@ -169,10 +169,6 @@ class Search {
|
||||
* @param message
|
||||
*/
|
||||
realTimeIndexing(message) {
|
||||
if (!message) {
|
||||
log.send(logLevels.ERROR, 'RealTime Indexing: Messages not provided');
|
||||
throw new Error('RealTime Indexing: Messages is required');
|
||||
}
|
||||
|
||||
try {
|
||||
let msg = JSON.parse(message);
|
||||
|
Loading…
Reference in New Issue
Block a user