Uses the resolved promise from the adapter

This commit is contained in:
Florent Vilmart
2016-03-12 15:20:52 -05:00
parent 4d401d9daa
commit a392c088d8
5 changed files with 57 additions and 23 deletions

View File

@@ -19,7 +19,7 @@ export class ParsePushAdapter extends PushAdapter {
immediatePush: true
};
let pushTypes = Object.keys(pushConfig);
for (let pushType of pushTypes) {
if (this.validPushTypes.indexOf(pushType) < 0) {
throw new Parse.Error(Parse.Error.PUSH_MISCONFIGURED,
@@ -35,7 +35,7 @@ export class ParsePushAdapter extends PushAdapter {
}
}
}
getValidPushTypes() {
return this.validPushTypes;
}
@@ -43,7 +43,7 @@ export class ParsePushAdapter extends PushAdapter {
static classifyInstallations(installations, validTypes) {
return classifyInstallations(installations, validTypes)
}
send(data, installations) {
let deviceMap = classifyInstallations(installations, this.validPushTypes);
let sendPromises = [];