Started work on channel-wide playlists.
This commit is contained in:
parent
59f097db39
commit
72a89ae5ff
5 changed files with 161 additions and 5 deletions
|
|
@ -44,7 +44,7 @@ const queuedProperties = new mongoose.Schema({
|
|||
discriminatorKey: 'status'
|
||||
});
|
||||
|
||||
//methods
|
||||
//Methods
|
||||
//Rehydrate to a full phat queued media object
|
||||
queuedProperties.methods.rehydrate = function(){
|
||||
return new queuedMedia(
|
||||
|
|
@ -61,4 +61,5 @@ queuedProperties.methods.rehydrate = function(){
|
|||
);
|
||||
}
|
||||
|
||||
//Export schema under the 'queued' discriminator of mediaSchema
|
||||
module.exports = mediaSchema.discriminator('queued', queuedProperties);
|
||||
Loading…
Add table
Add a link
Reference in a new issue