We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afaf0eb commit 9f83cb4Copy full SHA for 9f83cb4
server/src/services/activity.service.ts
@@ -31,8 +31,7 @@ export class ActivityService extends BaseService {
31
32
async getStatistics(auth: AuthDto, dto: ActivityDto): Promise<ActivityStatisticsResponseDto> {
33
await this.requireAccess({ auth, permission: Permission.ALBUM_READ, ids: [dto.albumId] });
34
- const { comments, likes } = await this.activityRepository.getStatistics({ albumId: dto.albumId, assetId: dto.assetId });
35
- return { comments, likes };
+ return await this.activityRepository.getStatistics({ albumId: dto.albumId, assetId: dto.assetId });
36
}
37
38
async create(auth: AuthDto, dto: ActivityCreateDto): Promise<MaybeDuplicate<ActivityResponseDto>> {
0 commit comments