[TypeError: Cannot assign to read only property 'checkKeys' of true]
passport-local-mongoose 1.0.1
timestamps 0.4.0
var mongoose = require('mongoose');
var passportLocalMongoose = require('passport-local-mongoose');
var timestamps = require('mongoose-timestamp');
var Schema = mongoose.Schema;
exports.User = mongoose.model('User', new Schema({
username: {
type: String,
index: {
unique: true,
sparse: true
}
},
email: String
}, {
safe: true,
strict: true
}).plugin(passportLocalMongoose, {}).plugin(timestamps));
removing the timestamps plugin gets this working, but I liked the timestamps plugin.
[TypeError: Cannot assign to read only property 'checkKeys' of true]
passport-local-mongoose 1.0.1
timestamps 0.4.0
removing the timestamps plugin gets this working, but I liked the timestamps plugin.