refactor(core): Rename push sessionId to pushRef (#8905)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-04-03 13:43:14 +02:00
committed by GitHub
parent eaaefd76da
commit 072c3db97d
58 changed files with 248 additions and 257 deletions

View File

@@ -196,11 +196,11 @@ export async function handleCommandMessageMain(messageString: string) {
* Do not debounce this - all events share the same message name.
*/
const { type, args, sessionId } = message.payload;
const { type, args, pushRef } = message.payload;
if (!push.getBackend().hasSessionId(sessionId)) break;
if (!push.getBackend().hasPushRef(pushRef)) break;
push.send(type, args, sessionId);
push.send(type, args, pushRef);
break;
}
@@ -212,9 +212,9 @@ export async function handleCommandMessageMain(messageString: string) {
return message;
}
const { webhookKey, workflowEntity, sessionId } = message.payload;
const { webhookKey, workflowEntity, pushRef } = message.payload;
if (!push.getBackend().hasSessionId(sessionId)) break;
if (!push.getBackend().hasPushRef(pushRef)) break;
const testWebhooks = Container.get(TestWebhooks);