Skip to content

Commit 5f564f3

Browse files
committed
simplify a little
1 parent 874d10f commit 5f564f3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Controllers/DatabaseController.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,8 +654,7 @@ DatabaseController.prototype.find = function(className, query, {
654654
if (!isMaster) {
655655
query = addReadACL(query, aclGroup);
656656
}
657-
return schemaController.reloadData()
658-
.then(() => schemaController.getOneSchema(className))
657+
return schemaController.getOneSchema(className)
659658
.catch(error => {
660659
// If the schema doesn't exist, pretend it exists with no fields. This behaviour
661660
// will likely need revisiting.

0 commit comments

Comments
 (0)