Parse Cloud afterSave TourCommit function request var version request

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
Parse.Cloud.afterSave("TourCommit", function(request) {
var version = request.object.get("VERSION");
sendPushNotification(request.object.get("TOUR"), {
"content-available": 1,
"event": "tour_updated",
"version": version
},
{
success: function() {
},
error: function(error) {
console.log(error);
}
}
);
});