@@ -259,7 +259,7 @@ DatabaseController.prototype.update = function(className, query, update, {
259
259
validateQuery ( query ) ;
260
260
return schemaController . getOneSchema ( className , true )
261
261
. catch ( error => {
262
- // If the schema doesn't exist, pretend it exists with no fields. This behaviour
262
+ // If the schema doesn't exist, pretend it exists with no fields. This behavior
263
263
// will likely need revisiting.
264
264
if ( error === undefined ) {
265
265
return { fields : { } } ;
@@ -449,7 +449,7 @@ DatabaseController.prototype.destroy = function(className, query, { acl } = {})
449
449
validateQuery ( query ) ;
450
450
return schemaController . getOneSchema ( className )
451
451
. catch ( error => {
452
- // If the schema doesn't exist, pretend it exists with no fields. This behaviour
452
+ // If the schema doesn't exist, pretend it exists with no fields. This behavior
453
453
// will likely need revisiting.
454
454
if ( error === undefined ) {
455
455
return { fields : { } } ;
@@ -650,7 +650,7 @@ DatabaseController.prototype.reduceInRelation = function(className, query, schem
650
650
651
651
// remove the current queryKey as we don,t need it anymore
652
652
delete query [ key ] ;
653
- // execute each query independnently to build the list of
653
+ // execute each query independently to build the list of
654
654
// $in / $nin
655
655
const promises = queries . map ( ( q ) => {
656
656
if ( ! q ) {
@@ -783,11 +783,11 @@ DatabaseController.prototype.find = function(className, query, {
783
783
return this . loadSchema ( )
784
784
. then ( schemaController => {
785
785
//Allow volatile classes if querying with Master (for _PushStatus)
786
- //TODO: Move volatile classes concept into mongo adatper , postgres adapter shouldn't care
786
+ //TODO: Move volatile classes concept into mongo adapter , postgres adapter shouldn't care
787
787
//that api.parse.com breaks when _PushStatus exists in mongo.
788
788
return schemaController . getOneSchema ( className , isMaster )
789
789
. catch ( error => {
790
- // Behaviour for non-existent classes is kinda weird on Parse.com. Probably doesn't matter too much.
790
+ // Behavior for non-existent classes is kinda weird on Parse.com. Probably doesn't matter too much.
791
791
// For now, pretend the class exists but has no objects,
792
792
if ( error === undefined ) {
793
793
classExists = false ;
@@ -797,7 +797,7 @@ DatabaseController.prototype.find = function(className, query, {
797
797
} )
798
798
. then ( schema => {
799
799
// Parse.com treats queries on _created_at and _updated_at as if they were queries on createdAt and updatedAt,
800
- // so duplicate that behaviour here. If both are specified, the corrent behaviour to match Parse.com is to
800
+ // so duplicate that behavior here. If both are specified, the correct behavior to match Parse.com is to
801
801
// use the one that appears first in the sort list.
802
802
if ( sort . _created_at ) {
803
803
sort . createdAt = sort . _created_at ;
@@ -925,7 +925,7 @@ DatabaseController.prototype.addPointerPermissions = function(schema, className,
925
925
// the ACL should have exactly 1 user
926
926
if ( perms && perms [ field ] && perms [ field ] . length > 0 ) {
927
927
// No user set return undefined
928
- // If the length is > 1, that means we didn't dedup users correctly
928
+ // If the length is > 1, that means we didn't de-dupe users correctly
929
929
if ( userACL . length != 1 ) {
930
930
return ;
931
931
}
0 commit comments