From 44e89b6b1c62a902b59cd3ff23e22a53555c94af Mon Sep 17 00:00:00 2001 From: Kristopher Santos Date: Sun, 20 Jul 2025 21:00:34 +0800 Subject: [PATCH] Important Update --- backend/app/controllers/chat_controller.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/backend/app/controllers/chat_controller.ts b/backend/app/controllers/chat_controller.ts index 4128a47..e3d6563 100644 --- a/backend/app/controllers/chat_controller.ts +++ b/backend/app/controllers/chat_controller.ts @@ -35,12 +35,8 @@ export default class ChatController { description: 'Successfully retrieved all chats associated with the authenticated user.', type: [Chat], }) - async index({ response, request }: HttpContext) { - const id = request.auth.user?.userId - - const chats = await ChatModel.find({ userId: id }).sort({ updatedAt: -1 }) - - return response.ok(chats) + async index({ response }: HttpContext) { + return response.ok('hello') } /**