change status in notificationSend
This commit is contained in:
@@ -21,7 +21,7 @@ export class SocketService {
|
|||||||
const connectedClients = server.sockets.sockets;
|
const connectedClients = server.sockets.sockets;
|
||||||
|
|
||||||
if (connectedClients.size === 0) {
|
if (connectedClients.size === 0) {
|
||||||
resolveHandlerSend({ status: 404, message: "Failed to find the clients!" });
|
resolveHandlerSend({ status: 1, message: "Failed to find the clients!" });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -42,11 +42,11 @@ export class SocketService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!sent) {
|
if (!sent) {
|
||||||
resolveHandlerSend({ status: 404, message: "Failed to send to the clients!" });
|
resolveHandlerSend({ status: 2, message: "Failed to send to the clients!" });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
resolveHandlerSend({ status: 200, message: "Success in sending to the clients!" });
|
resolveHandlerSend({ status: 0, message: "Success in sending to the clients!" });
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user