fix(api): fixing put to post
This commit is contained in:
@@ -58,7 +58,7 @@ const resendNotificationToUser = async (notificationId, userId) => {
|
|||||||
// Resend Chat by User
|
// Resend Chat by User
|
||||||
const resendChatByUser = async (notificationId, userPhone) => {
|
const resendChatByUser = async (notificationId, userPhone) => {
|
||||||
const response = await SendRequest({
|
const response = await SendRequest({
|
||||||
method: 'put',
|
method: 'post',
|
||||||
prefix: `notification-user/resend/${notificationId}/${userPhone}`,
|
prefix: `notification-user/resend/${notificationId}/${userPhone}`,
|
||||||
});
|
});
|
||||||
return response.data;
|
return response.data;
|
||||||
|
|||||||
@@ -287,7 +287,6 @@ const ListNotification = memo(function ListNotification(props) {
|
|||||||
id: user.notification_error_user_id.toString(),
|
id: user.notification_error_user_id.toString(),
|
||||||
name: user.contact_name,
|
name: user.contact_name,
|
||||||
phone: user.contact_phone,
|
phone: user.contact_phone,
|
||||||
userId: user.notification_error_user_id,
|
|
||||||
status: user.is_send ? 'Delivered' : 'Pending',
|
status: user.is_send ? 'Delivered' : 'Pending',
|
||||||
timestamp: user.created_at
|
timestamp: user.created_at
|
||||||
? new Date(user.created_at).toLocaleString('id-ID', {
|
? new Date(user.created_at).toLocaleString('id-ID', {
|
||||||
@@ -610,10 +609,10 @@ const ListNotification = memo(function ListNotification(props) {
|
|||||||
ghost
|
ghost
|
||||||
icon={<SendOutlined />}
|
icon={<SendOutlined />}
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
await resendChatByUser(user.userId, user.phone);
|
await resendChatByUser(user.id, user.phone);
|
||||||
message.info(
|
// message.info(
|
||||||
'Resend feature is not available yet. This feature is still under development.'
|
// 'Resend feature is not available yet. This feature is still under development.'
|
||||||
);
|
// );
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Resend
|
Resend
|
||||||
|
|||||||
Reference in New Issue
Block a user