api/dataServices/activity/popular.ts
Function popular
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export async function popular(context: Context): Promise<Activity[]> {
const userId = context.getCurrentUserId(true);
const activityLogQueryFactory = await getActivityLogQuery(context);
const popularQuery = activityLogQueryFactory();
const popularActivityIds: { activityId: string }[] = await popularQuery