Skip to content

Commit c48ff68

Browse files
fix(README): Update code snippet
1 parent ffd44d8 commit c48ff68

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -385,11 +385,11 @@ Messages can be labeled with customer id by adding `x-watson-metadata` header to
385385

386386
```js
387387
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;
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;
393393
};
394394
```
395395

0 commit comments

Comments
 (0)