Skip to content

Commit 6e4bb20

Browse files
committed
fixed: schema
1 parent ab90c50 commit 6e4bb20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mongoose/controllers/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ exports.install = function(framework) {
66
function view_index() {
77

88
var self = this;
9-
var User = MODEL('user');
9+
var User = MODEL('user').schema;
1010

1111
User.find(function(err, users) {
1212
self.view('index', users);

0 commit comments

Comments
 (0)