Fix notifications

This commit is contained in:
Ahmed Salah Tawfik Ibrahim 2023-12-04 16:06:26 +01:00
parent dadf817c3a
commit 48417a3255
1 changed files with 2 additions and 2 deletions

View File

@ -284,8 +284,8 @@ public class LibClient extends BaseClient{
Validate.isTrue(userid != null, "userid cannot be null");
logger.debug("Request for get user notification channels");
String thisMethodSignature = "get-user-notification-channels-lib";
String request = getServiceEndpoint() + thisMethodSignature + "?userid=" + userid;
return HttpClient.post(new GenericType<ResponseBean<ArrayList<NotificationChannelType>>>(){}, request, notificationType);
String request = getServiceEndpoint() + thisMethodSignature + "?userid=" + userid + "&type=" + notificationType.toString();
return HttpClient.get(new GenericType<ResponseBean<ArrayList<NotificationChannelType>>>(){}, request);
}