Skip to content

Commit

Permalink
Merge pull request #325 from IanSimpson/patch-3
Browse files Browse the repository at this point in the history
Fix ConversationsEndpoint publishDraft function
  • Loading branch information
miguelrs authored Oct 1, 2024
2 parents 29031fb + 30a2d36 commit 090b6d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Conversations/ConversationsEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function updateCustomer(int $conversationId, int $newCustomerId): void

public function publishDraft(int $conversationId): void
{
$patch = Patch::replace('draft', true);
$patch = Patch::replace('draft', false);
$this->patchConversation($conversationId, $patch);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Conversations/ConversationIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ public function testCanPublishDraft()
$this->verifyRequestWithData('https://api.helpscout.net/v2/conversations/1', 'PATCH', [
'op' => 'replace',
'path' => '/draft',
'value' => true,
'value' => false,
]);
}

Expand Down

0 comments on commit 090b6d2

Please sign in to comment.