simplify a little
This commit is contained in:
@@ -654,8 +654,7 @@ DatabaseController.prototype.find = function(className, query, {
|
|||||||
if (!isMaster) {
|
if (!isMaster) {
|
||||||
query = addReadACL(query, aclGroup);
|
query = addReadACL(query, aclGroup);
|
||||||
}
|
}
|
||||||
return schemaController.reloadData()
|
return schemaController.getOneSchema(className)
|
||||||
.then(() => schemaController.getOneSchema(className))
|
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
// If the schema doesn't exist, pretend it exists with no fields. This behaviour
|
// If the schema doesn't exist, pretend it exists with no fields. This behaviour
|
||||||
// will likely need revisiting.
|
// will likely need revisiting.
|
||||||
|
|||||||
Reference in New Issue
Block a user