ФУНКЦИИ - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: realtime внешних контуров и действия исходящих карточек
This commit is contained in:
@@ -88,7 +88,11 @@ export class IssueStreamController {
|
||||
subscriber.on("message", (_channel, message) => {
|
||||
try {
|
||||
const event = JSON.parse(message) as TIssueRealtimeEvent;
|
||||
if (event.project_id !== projectId || !event.type?.startsWith("issue.")) return;
|
||||
if (
|
||||
event.project_id !== projectId ||
|
||||
(!event.type?.startsWith("issue.") && !event.type?.startsWith("external_contour."))
|
||||
)
|
||||
return;
|
||||
|
||||
sendJson(ws, event as Record<string, unknown>);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user