projects/command/src/concerns/domain_mappers.rb in foobara-0.0.36 vs projects/command/src/concerns/domain_mappers.rb in foobara-0.0.37

- old
+ new

@@ -21,16 +21,16 @@ inputs = domain_map!(unmapped_inputs, to: subcommand_class, strict: true) result = run_subcommand!(subcommand_class, inputs) if has_result_type - result_mapper = self.class.domain.foobara_domain_mapper_registry.lookup!( + result_mapper = self.class.domain.lookup_matching_domain_mapper!( from: result, to: result_type, strict: true ) - result = result_mapper.map(result) + result = result_mapper.map!(result) end result end