Added required field

This commit is contained in:
Keith Holliday
2017-06-29 08:11:02 -06:00
parent f2d81a8d9c
commit e4f5950ffc

View File

@@ -245,7 +245,7 @@ export let DailySchema = new Schema(_.defaults({
weeksOfMonth: {type: [Number], default: []}, // Weeks of the month that the daily should repeat on
isDue: {type: Boolean},
nextDue: [{type: String}],
yesterDaily: {type: Boolean, default: true},
yesterDaily: {type: Boolean, default: true, required: true},
}, habitDailySchema(), dailyTodoSchema()), subDiscriminatorOptions);
export let daily = Task.discriminator('daily', DailySchema);