silentrob/superscript

View on GitHub
src/bot/db/models/reply.js

Summary

Maintainability
A
1 hr
Test Coverage

Function createReplyModel has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const createReplyModel = function createReplyModel(db) {
  const replySchema = new mongoose.Schema({
    id: { type: String, index: true, default: Utils.genId() },
    reply: { type: String, required: '{reply} is required.' },
    keep: { type: Boolean, default: false },
Severity: Minor
Found in src/bot/db/models/reply.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status