pushStatusHandler wrong payload md5, PushController send pushId to adapter also (#2067)
This commit is contained in:
committed by
Florent Vilmart
parent
bae19f2c76
commit
676d2e28de
@@ -124,11 +124,11 @@ export class PushController extends AdaptableController {
|
||||
} else {
|
||||
payload.data.badge = parseInt(badge);
|
||||
}
|
||||
return this.adapter.send(payload, badgeInstallationsMap[badge]);
|
||||
return this.adapter.send(payload, badgeInstallationsMap[badge], pushStatus.objectId);
|
||||
});
|
||||
return Promise.all(promises);
|
||||
}
|
||||
return this.adapter.send(body, installations);
|
||||
return this.adapter.send(body, installations, pushStatus.objectId);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -36,7 +36,7 @@ export default function pushStatusHandler(config) {
|
||||
expiry: body.expiration_time,
|
||||
status: "pending",
|
||||
numSent: 0,
|
||||
pushHash: md5Hash(payloadString),
|
||||
pushHash: md5Hash(data.alert || ''),
|
||||
// lockdown!
|
||||
ACL: {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user