Merge pull request #7894 from ItzNotABug/refactor-remove-reduntant-database-call
Remove a Redundant Call to Fetch the Topic Document Again
This commit is contained in:
commit
5f3e005bb1
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue