forked from Archives/Athou_commafeed
notify over websocket after everything has been committed
This commit is contained in:
@@ -171,8 +171,6 @@ public class FeedRefreshUpdater {
|
|||||||
List<User> users = subscriptions.stream().map(FeedSubscription::getUser).toList();
|
List<User> users = subscriptions.stream().map(FeedSubscription::getUser).toList();
|
||||||
cache.invalidateUnreadCount(subscriptions.toArray(new FeedSubscription[0]));
|
cache.invalidateUnreadCount(subscriptions.toArray(new FeedSubscription[0]));
|
||||||
cache.invalidateUserRootCategory(users.toArray(new User[0]));
|
cache.invalidateUserRootCategory(users.toArray(new User[0]));
|
||||||
|
|
||||||
notifyOverWebsocket(unreadCountBySubscription);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -187,6 +185,8 @@ public class FeedRefreshUpdater {
|
|||||||
|
|
||||||
unitOfWork.run(() -> feedService.save(feed));
|
unitOfWork.run(() -> feedService.save(feed));
|
||||||
|
|
||||||
|
notifyOverWebsocket(unreadCountBySubscription);
|
||||||
|
|
||||||
return processed;
|
return processed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user