Skip to content

Commit

Permalink
fix: returning function on unsubscribe
Browse files Browse the repository at this point in the history
When client unsubscribed from a channel it caused a runtime exception "Cannot serialize \"function\" to HTTP response"
  • Loading branch information
diogo-nogueira authored and RomainLanz committed Sep 25, 2024
1 parent a67a3c7 commit bf81456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/unsubscribe_controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ export default class UnsubscribeController {
return ctx.response.badRequest()
}

return ctx.response.noContent
return ctx.response.noContent()
}
}

0 comments on commit bf81456

Please sign in to comment.