Module: CommandTower::Workflows::Admin::Users::IdentityMutation

Defined in:
app/workflows/command_tower/workflows/admin/users/identity_mutation.rb

Class Method Summary collapse

Class Method Details

.map_service_failure(result) ⇒ Object



18
19
20
21
22
23
24
25
# File 'app/workflows/command_tower/workflows/admin/users/identity_mutation.rb', line 18

def map_service_failure(result)
  CommandTower::Workflows::WorkflowResult.failure(
    errors: result.errors,
    http_status: CommandTower::Workflows::Admin::Users::ErrorMapping.http_status_for(
      result.errors.first
    )
  )
end

.resolve_target(id:, principal:, scope_value:) ⇒ Object



10
11
12
13
14
15
16
# File 'app/workflows/command_tower/workflows/admin/users/identity_mutation.rb', line 10

def resolve_target(id:, principal:, scope_value:)
  CommandTower::SharedSequences::Admin::Users::ResolveScopedUser.call(
    id:,
    principal:,
    scope_value:
  )
end