Skip to content

Commit 7a8a110

Browse files
marvelmflovilmart
authored andcommitted
Include PushAudience in query (#795)
1 parent d325e4b commit 7a8a110

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/dashboard/Push/PushNew.react.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,11 @@ export default class PushNew extends DashboardView {
214214
// Only set the audience ID if it is a saved audience.
215215
if (audience_id != PushConstants.NEW_SEGMENT_ID && audience_id != "everyone") {
216216
body.audience_id = audience_id;
217+
const pushAudience = this.props.pushaudiences.data.get('audiences').toJS()
218+
.find((a) => a.objectId === audience_id);
219+
body.where = pushAudience.query;
217220
}
221+
218222
Parse.Push.send(body, {
219223
useMasterKey: true,
220224
}).then(({ error }) => {

0 commit comments

Comments
 (0)