From f2305c2b6c211efcf3a232ff7ff21277f7b0b5d5 Mon Sep 17 00:00:00 2001 From: ItzNotABug Date: Mon, 1 Apr 2024 13:46:09 +0530 Subject: [PATCH] update: remove the redundant call to fetch the topic document again. --- app/controllers/api/messaging.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/controllers/api/messaging.php b/app/controllers/api/messaging.php index 8951839039..7dbe26b34a 100644 --- a/app/controllers/api/messaging.php +++ b/app/controllers/api/messaging.php @@ -2126,8 +2126,6 @@ App::get('/v1/messaging/topics/:topicId') throw new Exception(Exception::TOPIC_NOT_FOUND); } - $topic = $dbForProject->getDocument('topics', $topicId); - $response ->dynamic($topic, Response::MODEL_TOPIC); });