Skip to content

Commit 1604c67

Browse files
authored
fix changing of priority (#67)
1 parent 18ae5a5 commit 1604c67

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/client.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
AddLabelsDocument,
88
type AttachmentUploadUrlPartsFragment,
99
ChangeCustomerStatusDocument,
10+
ChangeThreadPriorityDocument,
1011
type ChatPartsFragment,
1112
CreateAttachmentUploadUrlDocument,
1213
CreateCustomerCardConfigDocument,
@@ -520,19 +521,21 @@ export class PlainClient {
520521
* WARNING: This is experimental and subject to change at any time without
521522
* a major version bump.
522523
*/
523-
async changeThreadPriority(input: VariablesOf<typeof CreateThreadDocument>['input']): SDKResult<{
524+
async changeThreadPriority(
525+
input: VariablesOf<typeof ChangeThreadPriorityDocument>['input']
526+
): SDKResult<{
524527
thread: ThreadPartsFragment;
525528
}> {
526529
const res = await request(this.#ctx, {
527-
query: CreateThreadDocument,
530+
query: ChangeThreadPriorityDocument,
528531
variables: {
529532
input,
530533
},
531534
});
532535

533536
return unwrapData(res, (q) => {
534537
return {
535-
thread: nonNullable(q.createThread.thread),
538+
thread: nonNullable(q.changeThreadPriority.thread),
536539
};
537540
});
538541
}

0 commit comments

Comments
 (0)