generated from VLADIMIR/template
fix
This commit is contained in:
@@ -56,7 +56,7 @@ func (s *ScenarioService) GetScenariosCatalog(
|
||||
return mapScenariosLight(scenarios, s.domain), nil
|
||||
}
|
||||
|
||||
func (s *ScenarioService) GetScenarioByID(
|
||||
func (s *ScenarioService) GetFullScenarioByID(
|
||||
ctx context.Context,
|
||||
id int,
|
||||
) (*Scenario, error) {
|
||||
@@ -67,6 +67,17 @@ func (s *ScenarioService) GetScenarioByID(
|
||||
return mapScenario(scenario, s.domain)
|
||||
}
|
||||
|
||||
func (s *ScenarioService) GetScenarioByID(
|
||||
ctx context.Context,
|
||||
id int,
|
||||
) (*Scenario, error) {
|
||||
scenario, err := s.scenariosRepo.GetScenarioByID(ctx, id)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return mapScenarioLight(scenario, s.domain), nil
|
||||
}
|
||||
|
||||
func (s *ScenarioService) UpdateScenarioByID(
|
||||
ctx context.Context,
|
||||
id int,
|
||||
|
||||
Reference in New Issue
Block a user