mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-23 14:26:54 +00:00
Added version to model
This commit is contained in:
1 parent
4be9f4a74a
commit
75f83427e0
2 files changed
+8
-1
No files matched your search
@@ -11,7 +11,13 @@ const Proj = require('./project.json');
|
||||
|
||||
Promise.resolve()
|
||||
.then(jsx('homebrew', './client/homebrew/homebrew.jsx', Proj.libs, ['shared']))
|
||||
.then(() => {
|
||||
console.log('here2');
|
||||
})
|
||||
.then(less('homebrew', './shared'))
|
||||
.then(() => {
|
||||
console.log('here?');
|
||||
})
|
||||
.then(assets(Proj.assets, ['./shared', './client']))
|
||||
.then(livereload())
|
||||
.then(server('./server.js', ['server']))
|
||||
|
||||
@@ -17,7 +17,8 @@ var HomebrewSchema = mongoose.Schema({
|
||||
createdAt : { type: Date, default: Date.now },
|
||||
updatedAt : { type: Date, default: Date.now},
|
||||
lastViewed : { type: Date, default: Date.now},
|
||||
views : {type:Number, default:0}
|
||||
views : {type:Number, default:0},
|
||||
version : {type: Number, default:1}
|
||||
}, { versionKey: false });
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user