fixed auto updates

This commit is contained in:
gdlbo
2024-02-21 16:58:47 +03:00
parent bf6c72f2a8
commit 982b2bb059
@@ -62,7 +62,7 @@ public class Updates {
if (PostsPreferences.isEnabled() && NetworkUtils.isNetworkConnected()) {
if (VotesPreferences.isEnabled()) {
Map<String, List<String>> posts = VotesService.getPosts(weekAgo);
Map<String, List<String>> posts = VotesService.getPosts(weekAgo / 1000);
Map<String, List<String>> groupIds = VotesService.getOwnerIds();
if (!posts.isEmpty()) {
@@ -75,7 +75,7 @@ public class Updates {
VotesPreferences.saveGroupsIds(groupIds.get("vote"));
}
} else {
List<String> posts = PostService.getAllPostsIds(weekAgo);
List<String> posts = PostService.getAllPostsIds(weekAgo / 1000);
List<Long> groupIds = PostService.getOwnerIds();
if (!posts.isEmpty()) {