change status in notificationSend

This commit is contained in:
AmirHossein Mahmoodi
2023-11-01 14:38:49 +03:30
parent c23c2a8a6c
commit 0ad17d2c8c

View File

@@ -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!" });
}); });
} }