Handled proper endpoint naming
This commit is contained in:
@@ -325,13 +325,13 @@ export const setSupportMessage = (message) => ({
|
||||
supportText: message
|
||||
});
|
||||
|
||||
export const sendSupportMail = (orderInfo, orderPackages, supportText) => {
|
||||
export const sendSupportMail = (orderInfo, orderPackages, support_text) => {
|
||||
let id = orderInfo.id;
|
||||
return dispatch => {
|
||||
return htmlClient.fetch({
|
||||
url: `${API_SERVER}/wp-json/wiaas/support/sendSupportMail`,
|
||||
url: `${API_SERVER}/wp-json/wiaas/support/send-support-email`,
|
||||
method: 'post',
|
||||
data: {id, supportText}
|
||||
data: {id, support_text}
|
||||
})
|
||||
.then(response => {
|
||||
if (typeof response.data !== 'undefined' && 'messages' in response.data) {
|
||||
|
||||
Reference in New Issue
Block a user