api/dataServices/food/popular.ts
Function popular
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export async function popular(context: Context): Promise<FoodEntity[]> {
const admins = await userDataService.getAdminUsers(context);
const userId = context.getCurrentUserId(true);
const queryFactory = await getQuery(context);
const foodLogFoods = await queryFactory()