Skip to content

Commit

Permalink
fix cron error
Browse files Browse the repository at this point in the history
Signed-off-by: ryjiang <[email protected]>
  • Loading branch information
shanghaikid committed May 28, 2024
1 parent c769e32 commit 2ed8353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/crons/crons.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2ed8353

Please sign in to comment.