Skip to content

Commit 676d2e2

Browse files
mihai-iorgaflovilmart
authored andcommitted
pushStatusHandler wrong payload md5, PushController send pushId to adapter also (#2067)
1 parent bae19f2 commit 676d2e2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Controllers/PushController.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ export class PushController extends AdaptableController {
124124
} else {
125125
payload.data.badge = parseInt(badge);
126126
}
127-
return this.adapter.send(payload, badgeInstallationsMap[badge]);
127+
return this.adapter.send(payload, badgeInstallationsMap[badge], pushStatus.objectId);
128128
});
129129
return Promise.all(promises);
130130
}
131-
return this.adapter.send(body, installations);
131+
return this.adapter.send(body, installations, pushStatus.objectId);
132132
}
133133

134134
/**

src/pushStatusHandler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default function pushStatusHandler(config) {
3636
expiry: body.expiration_time,
3737
status: "pending",
3838
numSent: 0,
39-
pushHash: md5Hash(payloadString),
39+
pushHash: md5Hash(data.alert || ''),
4040
// lockdown!
4141
ACL: {}
4242
}

0 commit comments

Comments
 (0)