Skip to content

Commit 623f381

Browse files
author
Rafael Santos
committed
Fix push audience query
1 parent 0461d23 commit 623f381

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/dashboard/Push/PushNew.react.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,9 @@ export default class PushNew extends DashboardView {
217217
// Only set the audience ID if it is a saved audience.
218218
if (audience_id != PushConstants.NEW_SEGMENT_ID && audience_id != "everyone") {
219219
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;
220223
}
221224
Parse.Push.send(body, {
222225
useMasterKey: true,

0 commit comments

Comments
 (0)