mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Added required field
This commit is contained in:
@@ -245,7 +245,7 @@ export let DailySchema = new Schema(_.defaults({
|
|||||||
weeksOfMonth: {type: [Number], default: []}, // Weeks of the month that the daily should repeat on
|
weeksOfMonth: {type: [Number], default: []}, // Weeks of the month that the daily should repeat on
|
||||||
isDue: {type: Boolean},
|
isDue: {type: Boolean},
|
||||||
nextDue: [{type: String}],
|
nextDue: [{type: String}],
|
||||||
yesterDaily: {type: Boolean, default: true},
|
yesterDaily: {type: Boolean, default: true, required: true},
|
||||||
}, habitDailySchema(), dailyTodoSchema()), subDiscriminatorOptions);
|
}, habitDailySchema(), dailyTodoSchema()), subDiscriminatorOptions);
|
||||||
export let daily = Task.discriminator('daily', DailySchema);
|
export let daily = Task.discriminator('daily', DailySchema);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user