Skip to content
Snippets Groups Projects
Unverified Commit bef9138b authored by Matheus Barbosa Silva's avatar Matheus Barbosa Silva Committed by GitHub
Browse files

regression: `lastChat` property missing on contact channel migrated from visitor (#34025)

parent 1dd2b47d
No related branches found
No related tags found
No related merge requests found
......@@ -120,6 +120,10 @@ const dataMap: [Partial<ILivechatVisitor>, IOmnichannelSource, CreateContactPara
details: {
type: OmnichannelSourceType.WIDGET,
},
lastChat: {
_id: 'last-chat-id',
ts: testDate,
},
},
],
customFields: undefined,
......
......@@ -22,6 +22,7 @@ export async function mapVisitorToContact(visitor: ILivechatVisitor, source: IOm
blocked: false,
verified: false,
details: source,
lastChat: visitor.lastChat,
},
],
customFields: visitor.livechatData,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment