|
@@ -70,7 +70,7 @@ export class CronsService {
|
|
// get current socket
|
|
// get current socket
|
|
const socketClient = clients.get(currentJob.clientId);
|
|
const socketClient = clients.get(currentJob.clientId);
|
|
|
|
|
|
- if (!socketClient) {
|
|
|
|
|
|
+ if (socketClient) {
|
|
// emit event to current client, loading and indexing events are indetified as collection update
|
|
// emit event to current client, loading and indexing events are indetified as collection update
|
|
socketClient.emit(WS_EVENTS.COLLECTION_UPDATE, collections);
|
|
socketClient.emit(WS_EVENTS.COLLECTION_UPDATE, collections);
|
|
|
|
|