Apply broadcasting note list after sucessful update for notebook repo

This commit is contained in:
Anthony Corbacho 2016-10-24 18:22:36 +09:00
parent 7fc1f37aed
commit 42fd3b5faa

View file

@ -107,8 +107,8 @@ public class NotebookRepoRestApi {
NotebookRepoWithSettings updatedSettings =
noteRepos.updateNotebookRepo(newSettings.name, newSettings.settings, subject);
if (!updatedSettings.isEmpty()) {
//TODO(anthony): need to uncomment bellow once #1537 is merged.
// notebookWsServer.broadcastReloadedNoteList(subject);
LOG.info("Broadcasting note list to user {}", subject.getUser());
notebookWsServer.broadcastReloadedNoteList(subject, null);
}
return new JsonResponse<>(Status.OK, "", updatedSettings).build();
}