Skip to content

Commit 2ed8353

Browse files
committed
fix cron error
Signed-off-by: ryjiang <jiangruiyi@gmail.com>
1 parent c769e32 commit 2ed8353

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/crons/crons.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class CronsService {
7070
// get current socket
7171
const socketClient = clients.get(currentJob.clientId);
7272

73-
if (!socketClient) {
73+
if (socketClient) {
7474
// emit event to current client, loading and indexing events are indetified as collection update
7575
socketClient.emit(WS_EVENTS.COLLECTION_UPDATE, collections);
7676

0 commit comments

Comments
 (0)