Add a config to get inventaire.io URL

This commit is contained in:
2026-02-09 00:17:11 +01:00
parent f73defdad3
commit 60c610de42
11 changed files with 52 additions and 50 deletions

View File

@@ -94,9 +94,9 @@ func findLangageField(multipleMessageFields map[string]json.RawMessage, lang str
return parsedField, err
}
func callInventaireBook(inventaireId string, lang string) (InventaireBookResult, error) {
func callInventaireBook(inventaireUrl string, inventaireId string, lang string) (InventaireBookResult, error) {
queryResult := InventaireBookResult{ID: inventaireId, Lang: lang}
u, err := computeInventaireApiUrl("entities")
u, err := computeInventaireApiUrl(inventaireUrl, "entities")
if err != nil {
return queryResult, err
}