Lambda-School-Labs/shopping-cart-be

View on GitHub
controllers/seller/createStore.js

Summary

Maintainability
A
1 hr
Test Coverage

Function createStore has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function createStore(req, res) {
    const { businessName } = req.body;
    const { sub: sellerId } = req.decodedToken;

    try {
Severity: Minor
Found in controllers/seller/createStore.js - About 1 hr to fix

    Parsing error: Invalid ecmaVersion.
    Open

    const Store = require('../../models/store');
    Severity: Minor
    Found in controllers/seller/createStore.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    There are no issues that match your filters.

    Category
    Status