in src/commands/image/reingest.ts [94:107]
private async fetchProjection(id: string, adminToolsEndpoint: URL, reingest = true) {
const url = new URL(`${adminToolsEndpoint}/images/projection/${id}`)
if (reingest) {
url.searchParams.append('reingest', 'true')
}
return this.http!.get(url).then(res => {
if (res.status !== 200) {
this.error(`Could not fetch projection – admin-tools returned ${res.status}: ${res.statusText}`, { exit: 1 })
}
return res.json()
})
}