From 6fa939c2ebeb6f3ad0c175b21fb66e685524c5f6 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 31 Oct 2023 18:39:03 +0100 Subject: [PATCH] :refactor: Allow dynamic projectId in inbox log payload --- integrations/plugin-inbox/src/JovoInbox.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/plugin-inbox/src/JovoInbox.ts b/integrations/plugin-inbox/src/JovoInbox.ts index 84aeb98bd..8e1fd41c9 100644 --- a/integrations/plugin-inbox/src/JovoInbox.ts +++ b/integrations/plugin-inbox/src/JovoInbox.ts @@ -181,7 +181,7 @@ export class JovoInbox extends Plugin { buildLog(jovo: Jovo, type: InboxLogTypeLike, payload: unknown): InboxLog { return { createdAt: new Date(), - projectId: this.config.projectId, + projectId: jovo.$data._JOVO_INBOX_.projectId || this.config.projectId, platform: jovo.$platform.constructor.name, userId: jovo.$user.id || '', locale: jovo.$request.getLocale() || this.config.fallbackLocale,