feathersjs/feathers-hooks-common

View on GitHub
src/hooks/mongo-keys.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function mongoKeys has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function mongoKeys<H extends HookContext = HookContext>(
  ObjectId: new (id?: string | number) => any,
  keyFields: string | string[],
) {
  keyFields = Array.isArray(keyFields) ? keyFields : [keyFields];
Severity: Minor
Found in src/hooks/mongo-keys.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status