Example #1
0
 this.getChannelInstallationsFromParseEnglish = function(channels) {
     var installationQuery = new Parse.Query(Parse.Installation);
     installationQuery.contains('localeIdentifier', 'en');
     if(channels.length > 0) {
         installationQuery.containedIn('channels', channels);
     }
     return installationQuery;
 };
Example #2
0
 this.getUserInstallationsFromParseSpanish = function(userQuery, channels) {
     var installationQuery = new Parse.Query(Parse.Installation);
     installationQuery.matchesQuery('user', userQuery);
     installationQuery.contains('localeIdentifier', 'es');
     if(channels.length > 0) {
         installationQuery.containedIn('channels', channels);
     }
     return installationQuery;
 };