fix(api): fixing put to post

This commit is contained in:
zain94rif
2026-01-05 14:48:46 +07:00
parent 739c55c0bc
commit 3266641f81
2 changed files with 5 additions and 6 deletions

View File

@@ -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;

View File

@@ -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={<SendOutlined />}
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