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);
|
clearTimeout(timer);
|
||||||
timer = null;
|
timer = null;
|
||||||
resetQueue();
|
resetQueue();
|
||||||
callback(JSON.stringify(queue));
|
if (queue) {
|
||||||
|
callback(JSON.stringify(queue));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getQueue(){
|
function getQueue(){
|
||||||
|
@ -169,10 +169,6 @@ class Search {
|
|||||||
* @param message
|
* @param message
|
||||||
*/
|
*/
|
||||||
realTimeIndexing(message) {
|
realTimeIndexing(message) {
|
||||||
if (!message) {
|
|
||||||
log.send(logLevels.ERROR, 'RealTime Indexing: Messages not provided');
|
|
||||||
throw new Error('RealTime Indexing: Messages is required');
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
let msg = JSON.parse(message);
|
let msg = JSON.parse(message);
|
||||||
|
Loading…
Reference in New Issue
Block a user