From 0d4ae097bb7b2dc3a04bfe73eb43e7be73f522b8 Mon Sep 17 00:00:00 2001 From: Nicola Squartini Date: Thu, 17 Oct 2024 18:12:14 +0200 Subject: [PATCH] fix: query `/v1/publishers/${ipa}` Querying `/v1/publishers/${ipa}-${pec}` yields 404. --- src/registered.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/registered.js b/src/registered.js index a5ea532..6d1b73d 100644 --- a/src/registered.js +++ b/src/registered.js @@ -53,7 +53,7 @@ module.exports = async function(request, h) { const apiURL = config.apiURL.replace(/\/$/, ''); try { - const getPublisherResp = await fetch(`${apiURL}/publishers/${ipa}-${pec}`, { + const getPublisherResp = await fetch(`${apiURL}/publishers/${ipa}`, { method: 'GET', headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${config.pasetoApiToken}` }, });