Get initial view working, sort out mongo mess with seed file

This commit is contained in:
Nathan Leniz
2015-03-03 19:23:56 +09:00
parent b7a95ee56f
commit 52e494407b
7 changed files with 86 additions and 43 deletions

View File

@@ -84,7 +84,7 @@ Story.remove({}, function(err, data) {
} else {
console.log('Deleted ', data);
}
Story.create(coursewares, function(err, data) {
Story.create(stories, function(err, data) {
if (err) {
console.log(err);
} else {