Updated archivedMediaSchema to track channel by DB identifier instead of name.
This commit is contained in:
parent
0dda73cd14
commit
a07edfc842
3 changed files with 11 additions and 10 deletions
|
|
@ -26,8 +26,9 @@ const archivedMedia = require('../../../app/channel/media/archivedMedia');
|
|||
*/
|
||||
const archivedProperties = new mongoose.Schema({
|
||||
channel: {
|
||||
type: mongoose.SchemaTypes.String,
|
||||
required: true,
|
||||
type: mongoose.SchemaTypes.ObjectID,
|
||||
ref: "channel",
|
||||
required: true
|
||||
},
|
||||
startTime: {
|
||||
type: mongoose.SchemaTypes.Number,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue