re-enable notifications validation

This commit is contained in:
Matteo Pagliazzi 2020-03-01 13:30:22 +01:00
parent c00a1d74f9
commit 343f276705

View file

@ -63,15 +63,11 @@ export const schema = new Schema({
$type: String,
default: uuid,
validate: [v => validator.isUUID(v), 'Invalid uuid for userNotification.'],
// @TODO: Add these back once we figure out the issue with notifications
// See Fix for https://github.com/HabitRPG/habitica/issues/9923
// required: true,
required: true,
},
type: {
$type: String,
// @TODO: Add these back once we figure out the issue with notifications
// See Fix for https://github.com/HabitRPG/habitica/issues/9923
// required: true,
required: true,
enum: NOTIFICATION_TYPES,
},
data: {