Skip to content
This repository was archived by the owner on Jan 22, 2021. It is now read-only.

Commit 5d8af85

Browse files
committed
Readme fix
1 parent 3bad53b commit 5d8af85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ Why not try [`meteor-logger`](https://github.com/lookback/meteor-logger)? :)
475475

476476
**Breaking change:** If you're using `this.params` in your custom mail routes' data functions (for sending or previewing emails), you need to change the function signature to accept a `params` parameter, and use that instead.
477477

478-
`this` in data functions is not an instance of NodeJS' [`http.ServerResponse`](https://nodejs.org/api/http.html#http_class_http_serverresponse).
478+
`this` in data functions is now an instance of NodeJS' [`http.ServerResponse`](https://nodejs.org/api/http.html#http_class_http_serverresponse).
479479

480480
```js
481481
route: {
@@ -485,7 +485,7 @@ route: {
485485
data: function(params) {
486486
// `this` is the HTTP response object.
487487
return {
488-
name: params.name // instead of this.name
488+
name: params.name // instead of this.params.name
489489
};
490490
}
491491
}

0 commit comments

Comments
 (0)