Skip to content

Commit

Permalink
fix: query /v1/publishers/${ipa}
Browse files Browse the repository at this point in the history
Querying `/v1/publishers/${ipa}-${pec}` yields 404.
  • Loading branch information
tensor5 committed Oct 21, 2024
1 parent 4a22954 commit 39322a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/register-fast-onboarding.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,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}` },
});
Expand Down
2 changes: 1 addition & 1 deletion src/registered.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}` },
});
Expand Down

0 comments on commit 39322a5

Please sign in to comment.