fixed bug

This commit is contained in:
Massimiliano Assante 2022-05-03 15:56:56 +02:00
parent 7810eba3db
commit ebecec2c1e
1 changed files with 5 additions and 1 deletions

View File

@ -189,7 +189,11 @@ public class Notifications {
logger.debug("workspace notifications from user = " + username);
logger.debug("trying hangling workspace notifications request");
if (!message.getType().getNotificationClass().isInstance(message)) {
//invalid call
return Response.status(Status.BAD_REQUEST).build();
}
logger.debug("workspace notifications request is correct, handling it");
ResponseBean responseBean = new ResponseBean();
Status status = Status.OK;