mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fixes get message endpoint
This commit is contained in:
@@ -1308,7 +1308,7 @@ App::get('/v1/messaging/messages/:id')
|
||||
->inject('dbForProject')
|
||||
->inject('response')
|
||||
->action(function (string $id, Database $dbForProject, Response $response) {
|
||||
$message = $dbForProject->getDocument('message', $id);
|
||||
$message = $dbForProject->getDocument('messages', $id);
|
||||
|
||||
if ($message->isEmpty()) {
|
||||
throw new Exception(Exception::MESSAGE_NOT_FOUND);
|
||||
|
||||
Reference in New Issue
Block a user