refactor: proper websocket message types

This commit is contained in:
Elian Doran
2025-09-13 12:54:53 +03:00
parent 998688573d
commit 4cd0702cbb
19 changed files with 164 additions and 170 deletions

View File

@@ -140,7 +140,7 @@ ws.subscribeToMessages(async (message) => {
};
}
if (message.taskType !== "export") {
if (!("taskType" in message) || message.taskType !== "export") {
return;
}
@@ -155,4 +155,4 @@ ws.subscribeToMessages(async (message) => {
toastService.showPersistent(toast);
}
});
});