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') } /**