mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 05:37:22 +01:00
models: add required: true to id fields where missing
This commit is contained in:
@@ -25,6 +25,7 @@ export let schema = new Schema({
|
||||
type: String,
|
||||
default: uuid,
|
||||
validate: [validator.isUUID, 'Invalid uuid.'],
|
||||
required: true,
|
||||
},
|
||||
type: {type: String, required: true, enum: NOTIFICATION_TYPES},
|
||||
data: {type: Schema.Types.Mixed, default: () => {
|
||||
|
||||
Reference in New Issue
Block a user