fix(groups): default group.privacy='private'. Starting now,

group.privacy is a required field due to certain queries
This commit is contained in:
Tyler Renelle 2014-02-20 12:10:07 -08:00
parent f736de3497
commit efb0a3f092

View file

@ -12,7 +12,7 @@ var GroupSchema = new Schema({
members: [{type: String, ref: 'User'}],
invites: [{type: String, ref: 'User'}],
type: {type: String, "enum": ['guild', 'party']},
privacy: {type: String, "enum": ['private', 'public']},
privacy: {type: String, "enum": ['private', 'public'], 'default':'private'},
//_v: {type: Number,'default': 0},
chat: Array,
/*