From 3266641f81ea2f60d1323f0af2feeb8f9192d368 Mon Sep 17 00:00:00 2001 From: zain94rif Date: Mon, 5 Jan 2026 14:48:46 +0700 Subject: [PATCH] fix(api): fixing put to post --- src/api/notification.jsx | 2 +- src/pages/notification/component/ListNotification.jsx | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/api/notification.jsx b/src/api/notification.jsx index 12b832c..fa35ddd 100644 --- a/src/api/notification.jsx +++ b/src/api/notification.jsx @@ -58,7 +58,7 @@ const resendNotificationToUser = async (notificationId, userId) => { // Resend Chat by User const resendChatByUser = async (notificationId, userPhone) => { const response = await SendRequest({ - method: 'put', + method: 'post', prefix: `notification-user/resend/${notificationId}/${userPhone}`, }); return response.data; diff --git a/src/pages/notification/component/ListNotification.jsx b/src/pages/notification/component/ListNotification.jsx index f35cdd2..cd0bdec 100644 --- a/src/pages/notification/component/ListNotification.jsx +++ b/src/pages/notification/component/ListNotification.jsx @@ -287,7 +287,6 @@ const ListNotification = memo(function ListNotification(props) { id: user.notification_error_user_id.toString(), name: user.contact_name, phone: user.contact_phone, - userId: user.notification_error_user_id, status: user.is_send ? 'Delivered' : 'Pending', timestamp: user.created_at ? new Date(user.created_at).toLocaleString('id-ID', { @@ -610,10 +609,10 @@ const ListNotification = memo(function ListNotification(props) { ghost icon={} onClick={async () => { - await resendChatByUser(user.userId, user.phone); - message.info( - 'Resend feature is not available yet. This feature is still under development.' - ); + await resendChatByUser(user.id, user.phone); + // message.info( + // 'Resend feature is not available yet. This feature is still under development.' + // ); }} > Resend