mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
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:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user