update: remove the redundant call to fetch the topic document again.

This commit is contained in:
ItzNotABug
2024-04-01 13:46:09 +05:30
parent ffbf3c0058
commit f2305c2b6c
-2
View File
@@ -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);
});