We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffd44d8 commit c48ff68Copy full SHA for c48ff68
README.md
@@ -385,11 +385,11 @@ Messages can be labeled with customer id by adding `x-watson-metadata` header to
385
386
```js
387
watsonMiddleware.before = async (message, payload) => {
388
- // it is up to you to implement calculateCustomerId function
389
- customerId = calculateCustomerId(payload.context);
390
- payload.headers['X-Watson-Metadata'] = 'customer_id=' + customerId;
391
-
392
- return payload;
+ // it is up to you to implement calculateCustomerId function
+ customerId = calculateCustomerId(payload.context);
+ payload.headers['X-Watson-Metadata'] = 'customer_id=' + customerId;
+
+ return payload;
393
};
394
```
395
0 commit comments