Skip to content

Commit 090b6d2

Browse files
authored
Merge pull request #325 from IanSimpson/patch-3
Fix ConversationsEndpoint publishDraft function
2 parents 29031fb + 30a2d36 commit 090b6d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Conversations/ConversationsEndpoint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public function updateCustomer(int $conversationId, int $newCustomerId): void
177177

178178
public function publishDraft(int $conversationId): void
179179
{
180-
$patch = Patch::replace('draft', true);
180+
$patch = Patch::replace('draft', false);
181181
$this->patchConversation($conversationId, $patch);
182182
}
183183

tests/Conversations/ConversationIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ public function testCanPublishDraft()
381381
$this->verifyRequestWithData('https://api.helpscout.net/v2/conversations/1', 'PATCH', [
382382
'op' => 'replace',
383383
'path' => '/draft',
384-
'value' => true,
384+
'value' => false,
385385
]);
386386
}
387387

0 commit comments

Comments
 (0)