lowdefy/lowdefy

View on GitHub
packages/api/src/routes/rootConfig/getHomeAndMenus.js

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Function getHomeAndMenus has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Confirmed

async function getHomeAndMenus(context) {
  const menus = await getMenus(context);

  const homePageId = get(context.config, 'homePageId');
  if (homePageId) {
Severity: Minor
Found in packages/api/src/routes/rootConfig/getHomeAndMenus.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status