Skip to content

Commit

Permalink
chore(sse): onLog() return this
Browse files Browse the repository at this point in the history
  • Loading branch information
miton18 committed Feb 24, 2025
1 parent 6d8d8c0 commit 3d7fe0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion esm/streams/access-logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class ApplicationAccessLogStream extends CleverCloudSse {
/**
* shortcut for .on('APPLICATION_LOG', (event) => ...)
* @param {Function} fn which handle logs
* @returns {any}
* @returns {this}
*/
onLog (fn) {
return this.on(ACCESS_LOG_EVENT_NAME, (event) => fn(event.data));
Expand Down
2 changes: 1 addition & 1 deletion esm/streams/application-logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class ApplicationLogStream extends CleverCloudSse {
/**
* shortcut for .on('APPLICATION_LOG', (event) => ...)
* @param {Function} fn which handle logs
* @returns {any}
* @returns {this}
*/
onLog (fn) {
return this.on(APPLICATION_LOG_EVENT_NAME, (event) => fn(event.data));
Expand Down

0 comments on commit 3d7fe0e

Please sign in to comment.