From bf81456ec63aa2f7da604a94092996bec63d87c5 Mon Sep 17 00:00:00 2001 From: diogo-nogueira <84200193+diogo-nogueira@users.noreply.github.com> Date: Wed, 25 Sep 2024 12:56:52 +0100 Subject: [PATCH] fix: returning function on unsubscribe When client unsubscribed from a channel it caused a runtime exception "Cannot serialize \"function\" to HTTP response" --- src/controllers/unsubscribe_controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/unsubscribe_controller.ts b/src/controllers/unsubscribe_controller.ts index 080de9c..b249757 100644 --- a/src/controllers/unsubscribe_controller.ts +++ b/src/controllers/unsubscribe_controller.ts @@ -25,6 +25,6 @@ export default class UnsubscribeController { return ctx.response.badRequest() } - return ctx.response.noContent + return ctx.response.noContent() } }