notify over websocket after everything has been committed

This commit is contained in:
Athou
2024-07-03 17:27:17 +02:00
parent 0dec0e3788
commit 6685057dae

View File

@@ -171,8 +171,6 @@ public class FeedRefreshUpdater {
List<User> users = subscriptions.stream().map(FeedSubscription::getUser).toList();
cache.invalidateUnreadCount(subscriptions.toArray(new FeedSubscription[0]));
cache.invalidateUserRootCategory(users.toArray(new User[0]));
notifyOverWebsocket(unreadCountBySubscription);
}
}
@@ -187,6 +185,8 @@ public class FeedRefreshUpdater {
unitOfWork.run(() -> feedService.save(feed));
notifyOverWebsocket(unreadCountBySubscription);
return processed;
}