aullman/opentok-meet

View on GitHub
server/roomstore.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function exports has 67 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = (redis, ot) => {
  const roomStore = {
    isP2P(room) {
      return room.toLowerCase().indexOf('p2p') >= 0;
    },
Severity: Major
Found in server/roomstore.js - About 2 hrs to fix

    Function getRoom has 56 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        getRoom(room, apiKey, secret) {
          console.log(`getRoom: ${room} ${apiKey} ${secret}`);
          const goToRoom = arguments[arguments.length - 1]; // eslint-disable-line
          // Lookup the mapping of rooms to sessionIds
          redis.hget('rooms', room, (err, sid) => {
    Severity: Major
    Found in server/roomstore.js - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status