1
0
Fork 0
mirror of synced 2024-06-14 08:44:49 +12: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:
Eldad A. Fux 2024-04-01 13:04:45 +02:00 committed by GitHub
commit 5f3e005bb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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);
});