From 731bc1241aae541298888857b6b956af86c461bc Mon Sep 17 00:00:00 2001 From: Alex Kaminskii Date: Wed, 12 Oct 2022 15:43:03 +0200 Subject: [PATCH] fix(tracker):default-null payload for user emited events --- tracker/tracker/src/main/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tracker/tracker/src/main/index.ts b/tracker/tracker/src/main/index.ts index deb7c9071..0b85f5d47 100644 --- a/tracker/tracker/src/main/index.ts +++ b/tracker/tracker/src/main/index.ts @@ -245,7 +245,7 @@ export default class API { this.setMetadata(key, value) } - event(key: string, payload: any, issue = false): void { + event(key: string, payload: any = null, issue = false): void { if (typeof key === 'string' && this.app !== null) { if (issue) { return this.issue(key, payload) @@ -260,7 +260,7 @@ export default class API { } } - issue(key: string, payload: any): void { + issue(key: string, payload: any = null): void { if (typeof key === 'string' && this.app !== null) { try { payload = JSON.stringify(payload)