Updated archivedMediaSchema to track channel by DB identifier instead of name.

This commit is contained in:
rainbow napkin 2026-07-06 01:06:55 -04:00
parent 0dda73cd14
commit a07edfc842
3 changed files with 11 additions and 10 deletions

View file

@ -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,