Skip to content

Commit

Permalink
docs(build-modular-monolith): fix wrong clients call
Browse files Browse the repository at this point in the history
Signed-off-by: bortolotti.dev <[email protected]>
  • Loading branch information
bortolottidev committed Oct 20, 2023
1 parent 227137a commit 62c5ab3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions versioned_docs/version-1.4.1/guides/build-modular-monolith.md
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ We'll see that this has generated a new directory, `clients/people/`, which cont
}
```

This configuration will make the People service client available as `app.people` inside any plugins that we create for our Media service.
This configuration will make the People service client available as `request.people` inside any plugins that we create for our Media service.

To create the skeleton structure for our plugin, let's create a new file, `services/media-service/plugin.js`, and add the following code:

Expand Down Expand Up @@ -904,7 +904,7 @@ function buildOnComposerResponseCallback (peopleProps) {
}
}

const people = await app.people.getPeople({ "where.id.in": peopleIds.join(',') })
const people = await request.people.getPeople({ "where.id.in": peopleIds.join(',') })

const getPersonNameById = (id) => {
const person = people.find(person => person.id === id)
Expand Down

0 comments on commit 62c5ab3

Please sign in to comment.