Skip to content

Commit

Permalink
Merge branch 'main' into pin-5339_multiple-add-users-client-producer-…
Browse files Browse the repository at this point in the history
…keychain
  • Loading branch information
Carminepo2 authored Oct 2, 2024
2 parents 800cf7a + 8c71502 commit a7a0488
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 a7a0488

Please sign in to comment.