Skip to content

Commit 059aa56

Browse files
Merge pull request #6407 from segmentio/quick-fix-mw
quick fix of mw pr
2 parents 66f7683 + 04047e9 commit 059aa56

File tree

1 file changed

+2
-2
lines changed
  • src/connections/sources/catalog/libraries/website/javascript

1 file changed

+2
-2
lines changed

src/connections/sources/catalog/libraries/website/javascript/middleware.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ analytics.addSourceMiddleware(({ payload, next }) => {
5656
## Using Destination Middlewares
5757

5858

59-
To add source middleware, use the following API:
59+
To add destination middleware, use the following API:
6060

6161
```js
62-
analytics.addDestinationMiddleware('integrationA', ({ payload, next, integrations }) => .... )
62+
analytics.addDestinationMiddleware('integrationA', ({ payload, next, integration }) => .... )
6363
```
6464

6565
- `payload` represents the event payload sent by Analytics.js. To change the value of the `payload`, mutate the `payload.obj` object. (See the example below.)

0 commit comments

Comments
 (0)