/
githubmirror
/
novu
Обзор
Документация
Войти
/
githubmirror
/
novu
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
next
libs/application-generic/src/utils/subscription.ts
15 строк
432 B
Adam Chmara
feat(api-service,js): context bound topic subscriptions fixes NV-6980 (#9840)
16 янв 2026, 17:25
Не верифицирован
16 янв 2026, 17:25
fcd5fef
Код
Авторство
О чём код?
export function buildDefaultSubscriptionIdentifier( topicKey: string, subscriberId: string, contextKeys?: string[] ): string { const base = `tk_${topicKey}:si_${subscriberId}`; // Include context in identifier for uniqueness (only when auto-generated) if (contextKeys && contextKeys.length > 0) { const contextPart = [...contextKeys].sort().join(','); return `${base}:ctx_${contextPart}`; } return base; }