chore: fixing typescript issues with using the new fetch
This commit is contained in:
@@ -111,7 +111,9 @@ export async function createRouter({
|
||||
|
||||
const catalogRes = await fetch(`${catalogUrl}/entities/by-name/${triple}`);
|
||||
if (!catalogRes.ok) {
|
||||
catalogRes.body.pipe(res.status(catalogRes.status));
|
||||
const catalogResText = await catalogRes.text();
|
||||
res.status(catalogRes.status);
|
||||
res.send(catalogResText);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user