fix(api): set arch if not provided or empty (fixes #278)

renovate/rouge-4.x
Jef Roosens 2022-11-07 21:13:40 +01:00
parent 9a552f5302
commit 5542be0418
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ fn (mut app App) v1_post_target() web.Result {
// If a repo is created without specifying the arch, we assume it's meant
// for the default architecture.
if 'arch' !in params {
if 'arch' !in params || params['arch'] == '' {
params['arch'] = app.conf.default_arch
}