baublet/w8mngr

View on GitHub
api/dataServices/activity/popular.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function popular has 27 lines of code (exceeds 25 allowed). Consider refactoring.
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
Severity: Minor
Found in api/dataServices/activity/popular.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status