diff --git a/twake/backend/node/src/services/channels/web/controllers/channel.ts b/twake/backend/node/src/services/channels/web/controllers/channel.ts index 16b8f9bcfe..a5e2abd4ce 100644 --- a/twake/backend/node/src/services/channels/web/controllers/channel.ts +++ b/twake/backend/node/src/services/channels/web/controllers/channel.ts @@ -493,7 +493,7 @@ export class ChannelCrudController async recent( request: FastifyRequest<{ - Querystring: ChannelListQueryParameters; + Querystring: { limit: 100 }; Params: BaseChannelsParameters; }>, ): Promise> { @@ -534,7 +534,7 @@ export class ChannelCrudController const filledChannels = await gr.services.channels.channels.fillChannelActivities(res); return { - resources: orderBy(filledChannels, "last_activity", "desc"), + resources: orderBy(filledChannels, "last_activity", "desc").slice(0, request.query.limit), }; } }