mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 11:37:58 +00:00
11 lines
312 B
JavaScript
Executable File
11 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;
|
|
};
|