Skip to content

Commit ff4ae55

Browse files
author
Arthur Cinader
authored
Fix minor comment typo (#4110)
* Fix minor comment typo * get the rest of the typos. use US spelling for behavior.
1 parent 5d359c3 commit ff4ae55

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Controllers/DatabaseController.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ DatabaseController.prototype.update = function(className, query, update, {
259259
validateQuery(query);
260260
return schemaController.getOneSchema(className, true)
261261
.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
263263
// will likely need revisiting.
264264
if (error === undefined) {
265265
return { fields: {} };
@@ -449,7 +449,7 @@ DatabaseController.prototype.destroy = function(className, query, { acl } = {})
449449
validateQuery(query);
450450
return schemaController.getOneSchema(className)
451451
.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
453453
// will likely need revisiting.
454454
if (error === undefined) {
455455
return { fields: {} };
@@ -650,7 +650,7 @@ DatabaseController.prototype.reduceInRelation = function(className, query, schem
650650

651651
// remove the current queryKey as we don,t need it anymore
652652
delete query[key];
653-
// execute each query independnently to build the list of
653+
// execute each query independently to build the list of
654654
// $in / $nin
655655
const promises = queries.map((q) => {
656656
if (!q) {
@@ -783,11 +783,11 @@ DatabaseController.prototype.find = function(className, query, {
783783
return this.loadSchema()
784784
.then(schemaController => {
785785
//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
787787
//that api.parse.com breaks when _PushStatus exists in mongo.
788788
return schemaController.getOneSchema(className, isMaster)
789789
.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.
791791
// For now, pretend the class exists but has no objects,
792792
if (error === undefined) {
793793
classExists = false;
@@ -797,7 +797,7 @@ DatabaseController.prototype.find = function(className, query, {
797797
})
798798
.then(schema => {
799799
// 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
801801
// use the one that appears first in the sort list.
802802
if (sort._created_at) {
803803
sort.createdAt = sort._created_at;
@@ -925,7 +925,7 @@ DatabaseController.prototype.addPointerPermissions = function(schema, className,
925925
// the ACL should have exactly 1 user
926926
if (perms && perms[field] && perms[field].length > 0) {
927927
// 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
929929
if (userACL.length != 1) {
930930
return;
931931
}

0 commit comments

Comments
 (0)