Skip to content

Commit

Permalink
fix: fixed partyId property in rest api
Browse files Browse the repository at this point in the history
  • Loading branch information
sksadjad committed Sep 14, 2023
1 parent 2706a7e commit 51861fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/contact-manager-rest-api/src/api-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function partyReadEndpoint(router: Router, context: IRequiredContext, opt
const path = opts?.path ?? '/parties'
router.get(`${path}/:partyId`, checkAuth(opts?.endpoint), async (request: Request, response: Response) => {
try {
const partyId = request.params.contactId
const partyId = request.params.partyId
const party = await context.agent.cmGetContact({ contactId: partyId })
response.statusCode = 200
return response.send(party)
Expand Down

0 comments on commit 51861fd

Please sign in to comment.