lib/duse/api/v1/actions/secret/update.rb
Method call
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def call(secret_id)
json = sanitized_json(strict: false)
secret = Get.new(env, current_user, params, json).call(secret_id)
Authorization::Secret.authorize! current_user, :update, secret
if !json[:shares].nil?