Skip to content

Commit c7c8754

Browse files
committed
prevent error with double opt-ins
1 parent fc2e3aa commit c7c8754

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "5.2.3",
2+
"version": "5.2.4",
33
"license": "AGPL-3.0",
44
"main": "dist/index.js",
55
"typings": "dist/index.d.ts",

src/queue.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ export const syncQueue = async (
105105
// }
106106

107107
if (action as ActionMessageV2) { // make it easier to process by moving the id to their objects
108-
action.campaign.id = action.campaignId;
108+
if (action.campaign)
109+
action.campaign.id = action.campaignId;
109110
if (action.action)
110111
action.action.id = action.actionId;
111112
if (action.org)

0 commit comments

Comments
 (0)