浏览代码

fix cron error

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 1 年之前
父节点
当前提交
2ed8353956
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      server/src/crons/crons.service.ts

+ 1 - 1
server/src/crons/crons.service.ts

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