feathersjs/feathers-hooks-common

View on GitHub
src/hooks/stash-before.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function stashBefore has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function stashBefore<H extends HookContext = HookContext>(fieldName?: string) {
  const beforeField = fieldName || 'before';

  return (context: H) => {
    checkContext(context, 'before', ['get', 'update', 'patch', 'remove'], 'stashBefore');
Severity: Minor
Found in src/hooks/stash-before.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status