Let multiple installations be updates if no critical values are set (#3040)
* Let multiple installations be updates if no critical values are set * nits
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { ParsePubSub } from './ParsePubSub';
|
||||
import Parse from 'parse/node';
|
||||
import logger from '../logger';
|
||||
|
||||
class ParseCloudCodePublisher {
|
||||
|
||||
@@ -624,6 +624,12 @@ RestWrite.prototype.handleInstallation = function() {
|
||||
installationId = installationId.toLowerCase();
|
||||
}
|
||||
|
||||
// Updating _Installation but not updating anything critical
|
||||
if (this.query && !this.data.deviceToken
|
||||
&& !installationId && !this.data.deviceType) {
|
||||
return;
|
||||
}
|
||||
|
||||
var promise = Promise.resolve();
|
||||
|
||||
var idMatch; // Will be a match on either objectId or installationId
|
||||
|
||||
Reference in New Issue
Block a user