Possibility to set tech during update
All checks were successful
Unittests / unittests (push) Successful in 9s
Unittests / deploy-dev (push) Successful in 53s

This commit is contained in:
Adam Štrauch 2024-02-01 20:57:13 +01:00
parent 45899f3b0c
commit bc4b6c7bff
Signed by: cx
GPG Key ID: 7262DAFE292BCE20

View File

@ -422,6 +422,19 @@ func (p *Processor) Update(appTemplate apps.App) error {
return err return err
} }
// Setup technology if it's noted in the request
if len(appTemplate.Setup.Tech) > 0 {
err := p.waitForApp()
if err != nil {
return err
}
err = p.EnableTech(appTemplate.Setup.Tech, appTemplate.Setup.TechVersion)
if err != nil {
return fmt.Errorf("failed to enable tech: %v", err)
}
}
return nil return nil
} }