pushStatusHandler wrong payload md5, PushController send pushId to adapter also (#2067)

This commit is contained in:
Mihai Iorga
2016-07-19 02:39:28 +03:00
committed by Florent Vilmart
parent bae19f2c76
commit 676d2e28de
2 changed files with 3 additions and 3 deletions

View File

@@ -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);
}
/**

View File

@@ -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: {}
}