From e74e8039bdccb2c075f90ad4f7ebc4bbde0a9fe7 Mon Sep 17 00:00:00 2001 From: Jorge Lapa <2780099+heyjorgedev@users.noreply.github.com> Date: Sat, 27 Jul 2024 19:05:33 +0100 Subject: [PATCH] fix isSuccessful result --- src/Responses/MessagePublishResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Responses/MessagePublishResponse.php b/src/Responses/MessagePublishResponse.php index acde4af..c4725f4 100644 --- a/src/Responses/MessagePublishResponse.php +++ b/src/Responses/MessagePublishResponse.php @@ -15,7 +15,7 @@ public function __construct( public function isSuccessful(): bool { - return $this->statusCode === 200; + return $this->statusCode === 201; } public function getErrors(): array