Skip to content

Commit

Permalink
Fix bff getProducerKeychains query params not being passed to the pro…
Browse files Browse the repository at this point in the history
…cess call (#1039)
  • Loading branch information
Carminepo2 authored Oct 2, 2024
1 parent 6c85746 commit 8c71502
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,17 @@ const producerKeychainRouter = (
.get("/producerKeychains", async (req, res) => {
const ctx = fromBffAppContext(req.ctx, req.headers);
try {
const requesterId = ctx.authData.organizationId;
const { limit, offset, userIds, q } = req.query;
const { limit, offset, userIds, q, eserviceId, producerId } = req.query;

const producerKeychains =
await producerKeychainService.getProducerKeychains(
{
limit,
offset,
userIds,
name: q,
requesterId,
producerId,
eserviceId,
},
ctx
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,17 @@ export function producerKeychainServiceBuilder(
{
limit,
offset,
requesterId,
producerId,
userIds,
name,
eserviceId,
}: {
requesterId: string;
producerId: string;
offset: number;
limit: number;
userIds: string[];
name?: string;
eserviceId?: string;
},
{ logger, headers }: WithLogger<BffAppContext>
): Promise<bffApi.CompactProducerKeychains> {
Expand All @@ -46,9 +48,9 @@ export function producerKeychainServiceBuilder(
offset,
limit,
userIds,
producerId: requesterId,
producerId,
name,
eserviceId: undefined,
eserviceId,
},
headers,
});
Expand Down

0 comments on commit 8c71502

Please sign in to comment.