payservedb 9.8.9 → 9.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/models/reminder.js +2 -2
package/package.json
CHANGED
package/src/models/reminder.js
CHANGED
|
@@ -56,9 +56,9 @@ const reminderSchema = new mongoose.Schema(
|
|
|
56
56
|
// If overdue is enabled but daily is false, then validate days array
|
|
57
57
|
return Array.isArray(value) &&
|
|
58
58
|
value.length > 0 &&
|
|
59
|
-
value.every(day => [1, 3, 7].includes(day));
|
|
59
|
+
value.every(day => [1, 3, 7, 10].includes(day));
|
|
60
60
|
},
|
|
61
|
-
message: 'When overdue reminders are enabled (and daily is false), days must include only values of 1, 3,
|
|
61
|
+
message: 'When overdue reminders are enabled (and daily is false), days must include only values of 1, 3, 7, 10'
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
}
|