universoimpulso/atena

View on GitHub
src/controllers/MessageController.js

Summary

Maintainability
A
1 hr
Test Coverage

Function handle has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  async handle(payload) {
    try {
      const { provider } = payload
      const user = await User.findOne({
        [`${provider.name}.id`]: provider.user.id
Severity: Minor
Found in src/controllers/MessageController.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status