We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98769a2 commit 438cf58Copy full SHA for 438cf58
src/Schema.js
@@ -448,9 +448,12 @@ class Schema {
448
geocount++;
449
}
450
if (geocount > 1) {
451
- throw new Parse.Error(
452
- Parse.Error.INCORRECT_TYPE,
453
- 'there can only be one geopoint field in a class');
+ // Make sure all field validation operations run before we return.
+ // If not - we are continuing to run logic, but already provided response from the server.
+ return promise.then(() => {
454
+ return Promise.reject(new Parse.Error(Parse.Error.INCORRECT_TYPE,
455
+ 'there can only be one geopoint field in a class'));
456
+ });
457
458
if (!expected) {
459
continue;
0 commit comments