Node.js based forum software built for the modern web
refactor: remove unused uids
Barış Soner Uşaklı20da71485fe0
diff --git a/src/topics/scheduled.js b/src/topics/scheduled.jsindex 138c1330bf..129f4113f3 100644--- a/src/topics/scheduled.js+++ b/src/topics/scheduled.js@@ -48,7 +48,7 @@ async function postTids(tids) {await Promise.all([].concat(sendNotifications(uids, topicsData),updateUserLastposttimes(uids, topicsData),- updateGroupPosts(uids, topicsData),+ updateGroupPosts(topicsData),...topicsData.map(topicData => unpin(topicData.tid, topicData)),));}@@ -151,7 +151,7 @@ async function updateUserLastposttimes(uids, topicsData) {return Promise.all(uidsToUpdate.map(uid => user.setUserField(uid, 'lastposttime', tstampByUid[uid])));}-async function updateGroupPosts(uids, topicsData) {+async function updateGroupPosts(topicsData) {const postsData = await posts.getPostsData(topicsData.map(t => t && t.mainPid));await Promise.all(postsData.map(async (post, i) => {if (post && topicsData[i]) {