exclude file count on channel stats api call on from channel header (#22624)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
932790f99a
Коммит
529ab959e2
@@ -1782,9 +1782,10 @@ export default class Client4 {
|
||||
);
|
||||
};
|
||||
|
||||
getChannelStats = (channelId: string) => {
|
||||
getChannelStats = (channelId: string, excludeFilesCount = false) => {
|
||||
const param = excludeFilesCount ? `?exclude_files_count=${excludeFilesCount}` : '';
|
||||
return this.doFetch<ChannelStats>(
|
||||
`${this.getChannelRoute(channelId)}/stats`,
|
||||
`${this.getChannelRoute(channelId)}/stats${param}`,
|
||||
{method: 'get'},
|
||||
);
|
||||
};
|
||||
|
||||
Ссылка в новой задаче
Block a user