This commit is contained in:
Massimiliano Assante 2022-09-16 12:34:10 +02:00
parent 87c06555ca
commit 9a4784a250
1 changed files with 3 additions and 3 deletions

View File

@ -213,11 +213,11 @@ public class Notifications {
try{
String opExecutor = caller.getClient().getId();
Boolean result = setUserNotificationsOnOff(username, disable, opExecutor);
Boolean result = setUserNotificationsOnOff(setting.getUsername(), setting.isDisableNotification(), opExecutor);
String toReturn = "Notifications have been set";
if (result) {
toReturn += disable ? " OFF ": " ON ";
toReturn += "for username=" + username;
toReturn += setting.isDisableNotification() ? " OFF ": " ON ";
toReturn += "for username=" + setting.getUsername();
}
responseBean.setSuccess(true);
responseBean.setResult(toReturn);