Skip to content

Commit 0106df0

Browse files
committed
fix: update relations in getSortedSubscribedChannels to use dynamic subChannelGetManyRelations
1 parent 2fa26df commit 0106df0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/channel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export class ChannelController {
171171
order: { [order]: 'DESC' },
172172
skip: offset,
173173
take: limit,
174-
relations: ['channel']
174+
relations: subChannelGetManyRelations
175175
};
176176
const statsResults = await ChannelController.statsAggregatedChannelService.getMany(channel_ids, config);
177177
return statsResults.map((stat: { channel: Channel }) => stat.channel).filter(Boolean);

0 commit comments

Comments
 (0)