From 0e93a3639c57e53ce4e71dd7ad351a738084713e Mon Sep 17 00:00:00 2001 From: Allan Tatter Date: Mon, 11 Mar 2024 14:50:19 +0200 Subject: [PATCH] refactor: swap assignment of message and thread IDs in MessageResponse class --- src/Capabilities/Threads/Responses/MessageResponse.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Capabilities/Threads/Responses/MessageResponse.php b/src/Capabilities/Threads/Responses/MessageResponse.php index 6c2ae72..38f0f96 100644 --- a/src/Capabilities/Threads/Responses/MessageResponse.php +++ b/src/Capabilities/Threads/Responses/MessageResponse.php @@ -18,8 +18,8 @@ public function __construct( ) { $data = $response->json(); - $this->threadId = $data['id']; - $this->messageId = $data['thread_id']; + $this->messageId = $data['id']; + $this->threadId = $data['thread_id']; $this->appendMeta('id', $data['id']); $this->appendMeta('object', $data['object']); $this->appendMeta('created_at', $data['created_at']);