Skip to content

Commit bf81456

Browse files
diogo-nogueiraRomainLanz
authored andcommitted
fix: returning function on unsubscribe
When client unsubscribed from a channel it caused a runtime exception "Cannot serialize \"function\" to HTTP response"
1 parent a67a3c7 commit bf81456

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/unsubscribe_controller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ export default class UnsubscribeController {
2525
return ctx.response.badRequest()
2626
}
2727

28-
return ctx.response.noContent
28+
return ctx.response.noContent()
2929
}
3030
}

0 commit comments

Comments
 (0)