Explicitly set value of registries and query_filters when undefined
Both are arrays, so we will use an empty array if they are undefined.
This commit is contained in:
parent
ba3ac6f096
commit
e6c9383ca6
3 changed files with 7 additions and 5 deletions
|
|
@ -220,11 +220,13 @@ async function sendCompletedStatusReport(
|
|||
await getTotalCacheSize(config.trapCaches, logger),
|
||||
),
|
||||
trap_cache_download_duration_ms: Math.round(config.trapCacheDownloadTime),
|
||||
query_filters: JSON.stringify(config.originalUserInput["query-filters"]),
|
||||
query_filters: JSON.stringify(
|
||||
config.originalUserInput["query-filters"] ?? [],
|
||||
),
|
||||
registries: JSON.stringify(
|
||||
configUtils.parseRegistriesWithoutCredentials(
|
||||
getOptionalInput("registries"),
|
||||
),
|
||||
) ?? [],
|
||||
),
|
||||
};
|
||||
await sendStatusReport({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue