We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0461d23 + 623f381 commit 8435a81Copy full SHA for 8435a81
src/dashboard/Push/PushNew.react.js
@@ -217,6 +217,9 @@ export default class PushNew extends DashboardView {
217
// Only set the audience ID if it is a saved audience.
218
if (audience_id != PushConstants.NEW_SEGMENT_ID && audience_id != "everyone") {
219
body.audience_id = audience_id;
220
+ const pushAudience = this.props.pushaudiences.data.get('audiences').toJS()
221
+ .find((a) => a.objectId === audience_id);
222
+ body.where = pushAudience.query;
223
}
224
Parse.Push.send(body, {
225
useMasterKey: true,
0 commit comments