mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
fix(task): make sure daysOfMonth update is only applied to dailies
This commit is contained in:
@@ -363,9 +363,9 @@ export const DailySchema = new Schema(_.defaults({
|
||||
},
|
||||
streak: { $type: Number, default: 0 },
|
||||
// Days of the month that the daily should repeat on
|
||||
daysOfMonth: { $type: [Number], default: [] },
|
||||
daysOfMonth: { $type: [Number], default: () => [] },
|
||||
// Weeks of the month that the daily should repeat on
|
||||
weeksOfMonth: { $type: [Number], default: [] },
|
||||
weeksOfMonth: { $type: [Number], default: () => [] },
|
||||
isDue: { $type: Boolean },
|
||||
nextDue: [{ $type: String }],
|
||||
yesterDaily: { $type: Boolean, default: true, required: true },
|
||||
|
||||
Reference in New Issue
Block a user