Skip to content

Commit

Permalink
fikser audience
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbjoern committed Dec 6, 2023
1 parent 40e5845 commit 4ab7ef8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pages/api/innsending/send.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const sendEttersendelse = async (data: InnsendingBackendState, accessToke
prometheusPath: '/innsending',
method: 'POST',
data: JSON.stringify(data),
audience: process.env.INNSENDING_URL!,
audience: process.env.INNSENDING_AUDIENCE!,
bearerToken: accessToken,
noResponse: true,
logger: logger,
Expand Down
2 changes: 1 addition & 1 deletion pages/api/innsending/vedlegg/les.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const handler = beskyttetApi(async (req, res) => {
method: 'GET',
prometheusPath: '/mellomlagring/fil',
req: req,
audience: process.env.INNSENDING_URL!,
audience: process.env.INNSENDING_AUDIENCE!,
bearerToken: accessToken,
});
});
Expand Down
2 changes: 1 addition & 1 deletion pages/api/innsending/vedlegg/slett.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const handler = beskyttetApi(async (req, res) => {
method: 'DELETE',
prometheusPath: '/mellomlagring/fil',
req,
audience: process.env.INNSENDING_URL!,
audience: process.env.INNSENDING_AUDIENCE!,
bearerToken: accessToken,
});
});
Expand Down

0 comments on commit 4ab7ef8

Please sign in to comment.