rhok-melbourne/kingtides-api

View on GitHub
controllers/tide_events.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function getTide has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.getTide = function(res, tideId) {
  KingTideEvent.findOne({
    _id: tideId
  }, function (err, event) {
    if (event == null) {
Severity: Major
Found in controllers/tide_events.js - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status