From d63eaf3ef010bbec9501ab86cba04e97eca8d900 Mon Sep 17 00:00:00 2001 From: Prateek Banga Date: Thu, 21 Sep 2023 21:49:40 +0530 Subject: [PATCH] fixes get message endpoint --- app/controllers/api/messaging.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/messaging.php b/app/controllers/api/messaging.php index 8014bb3f92..64da3919db 100644 --- a/app/controllers/api/messaging.php +++ b/app/controllers/api/messaging.php @@ -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);