Add icon source

This commit is contained in:
Daniel
2023-12-22 14:20:10 +01:00
parent 496016b810
commit f7f64e6b46
4 changed files with 46 additions and 12 deletions

View File

@@ -420,8 +420,9 @@ func ImportProfile(r *ProfileImportRequest, requiredProfileSource profile.Profil
return nil, fmt.Errorf("%w: icon is invalid: %w", ErrImportFailed, err)
}
p.Icons = []binmeta.Icon{{
Type: binmeta.IconTypeAPI,
Value: filename,
Type: binmeta.IconTypeAPI,
Value: filename,
Source: binmeta.IconSourceImport,
}}
}