engagementgamelab/CivicSeed

View on GitHub
server/rpc/profile/mugshot.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function actions has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.actions = function (req, res, ss) {
  req.use('session')
  req.use('account.authenticated')

  return {
Severity: Minor
Found in server/rpc/profile/mugshot.js - About 1 hr to fix

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

        signS3Request: function (playerId, file) {
          winston.info('Request to upload a profile image:', playerId, file.name, file.type, file.size)
    
          var NODE_ENV = config.get('NODE_ENV')
          var S3_BUCKET = config.get('MUGSHOTS_S3_BUCKET')
    Severity: Minor
    Found in server/rpc/profile/mugshot.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status