drinkingvideogames/mixer

View on GitHub
api/services/game/hooks.js

Summary

Maintainability
A
3 hrs
Test Coverage

Showing 3 of 3 total issues

Identical blocks of code found in 2 locations. Consider refactoring.
Open

before: {
create:
[ commonHooks.requireAuth(),
commonHooks.embellishUser(),
commonHooks.setCurrentDateHook('createdAt'),
Severity: Major
Found in api/services/game/hooks.js and 1 other location - About 1 hr to fix
api/services/asset/hooks.js on lines 3..12

Similar blocks of code found in 2 locations. Consider refactoring.
Open

const imageHooks = {
before: {
create: [
commonHooks.requireAuth()
]
Severity: Minor
Found in api/services/game/hooks.js and 1 other location - About 40 mins to fix
api/services/game/hooks.js on lines 40..49

Similar blocks of code found in 2 locations. Consider refactoring.
Open

const iconHooks = {
before: {
create: [
commonHooks.requireAuth()
]
Severity: Minor
Found in api/services/game/hooks.js and 1 other location - About 40 mins to fix
api/services/game/hooks.js on lines 29..38

There are no issues that match your filters.

Category
Status