Skip to content

Commit

Permalink
regression: lastChat property missing on contact channel migrated f…
Browse files Browse the repository at this point in the history
…rom visitor (#34025)
  • Loading branch information
matheusbsilva137 authored Nov 25, 2024
1 parent 1dd2b47 commit bef9138
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ const dataMap: [Partial<ILivechatVisitor>, IOmnichannelSource, CreateContactPara
details: {
type: OmnichannelSourceType.WIDGET,
},
lastChat: {
_id: 'last-chat-id',
ts: testDate,
},
},
],
customFields: undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export async function mapVisitorToContact(visitor: ILivechatVisitor, source: IOm
blocked: false,
verified: false,
details: source,
lastChat: visitor.lastChat,
},
],
customFields: visitor.livechatData,
Expand Down

0 comments on commit bef9138

Please sign in to comment.