Skip to content

Commit b9e0302

Browse files
committed
https://github.com/ParsePlatform/parse-server/pull/2114
1 parent bae19f2 commit b9e0302

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controllers/DatabaseController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ DatabaseController.prototype.loadSchema = function() {
121121
DatabaseController.prototype.redirectClassNameForKey = function(className, key) {
122122
return this.loadSchema().then((schema) => {
123123
var t = schema.getExpectedType(className, key);
124-
if (t.type == 'Relation') {
124+
if (t && t.type == 'Relation') {
125125
return t.targetClass;
126126
} else {
127127
return className;

0 commit comments

Comments
 (0)