|
|
@@ -34,7 +34,7 @@ export default defineEventHandler<EventHandlerRequest, Promise<IResponse<ICommon
|
|
|
const subChannels = (await DB.table('pr_cms_channel')
|
|
|
.where('parent_id', channel.id)
|
|
|
.where('status', 'normal')
|
|
|
- .select('id', '')
|
|
|
+ .select('id', 'name')
|
|
|
.get()).map(item => item.id);
|
|
|
if (bannedChannels.length > 0) {
|
|
|
channelIds.push(...subChannels.filter(item => !bannedChannels.includes(item.name)).map(item => item.id));
|