Redirect added after channel creation.

This commit is contained in:
rainbow napkin 2025-04-12 05:08:41 -04:00
parent 17e736ab1a
commit 567eb5b574
6 changed files with 16 additions and 20 deletions

View file

@ -229,7 +229,20 @@ channelSchema.statics.register = async function(channelObj, ownerObj){
rank: "admin"
}];
const newChannel = await this.create((thumbnail ? {id, name, description, thumbnail, rankList} : {id, name, description, rankList}));
const newChannelObj = {
id,
name,
description,
thumbnail,
rankList,
media: {
nowPlaying: null,
scheduledMedia: [],
archived: []
}
};
const newChannel = await this.create(newChannelObj);
}
}