Update: Add default values

This commit is contained in:
Yûki VACHOT 2021-12-10 18:20:11 +01:00
parent 924b06816c
commit 03bb63c861

View file

@ -3,9 +3,14 @@ module.exports = mongoose => {
userId: String,
videoId: String,
source: String,
tags: Array,
interest: String,
watchedDates: Array
interest: {
type: Array,
default: null
},
watchedDates: {
type: Array,
default: null
}
},
{ timestamps: true }
);