Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
popestr committed Sep 19, 2024
1 parent 9684af5 commit 4daee34
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class ChatCoreZendeskImpl {
* with the conversation summary as the initial message.
*/
private async setupSession(messageRsp: MessageResponse) {
let ticketFields: Record<string, any> = {};
const ticketFields: Record<string, unknown> = {};
try {
if (!!messageRsp.integrationDetails?.zendeskHandoff?.ticketFields) {
const rawFields = JSON.parse(
Expand Down
2 changes: 1 addition & 1 deletion packages/chat-core-zendesk/tests/ChatCoreZendesk.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ it("sets ticket fields on handoff", async () => {
"zen:ticket_field:field1": "value1",
"zen:ticket_field:field2": "value2",
"zen:ticket:tags": "yext-chat-agent-handoff",
"YEXT_CHAT_SDK": true,
YEXT_CHAT_SDK: true,
},
});
});
10 changes: 5 additions & 5 deletions packages/chat-core/src/models/integrations/Zendesk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* @public
*/
export interface ZendeskHandoff {
/**
* A serialized JSON string of ticket fields to be automatically set
* when initiating Zendesk handoff.
*/
ticketFields?: string;
/**
* A serialized JSON string of ticket fields to be automatically set
* when initiating Zendesk handoff.
*/
ticketFields?: string;
}

0 comments on commit 4daee34

Please sign in to comment.