722f540b03
- Add email collect hook on creating conversation - Merge contact if it already exist
10 lines
312 B
JavaScript
Executable file
10 lines
312 B
JavaScript
Executable file
import authEndPoint from 'widget/api/endPoints';
|
|
import { API } from 'widget/helpers/axios';
|
|
|
|
export const updateContact = async ({ messageId, email }) => {
|
|
const urlData = authEndPoint.updateContact(messageId);
|
|
const result = await API.patch(urlData.url, {
|
|
contact: { email },
|
|
});
|
|
return result;
|
|
};
|