fix: mainPid accidental int

This commit is contained in:
Julian Lam
2024-02-12 14:59:13 -05:00
parent 69f1ace3e5
commit 22da3a6a80

View File

@@ -221,7 +221,7 @@ Notes.updateTopicCounts = async function (tid) {
Notes.syncUserInboxes = async function (tid) {
const [pids, { cid, mainPid }] = await Promise.all([
db.getSortedSetMembers(`tid:${tid}:posts`),
topics.getTopicFields(tid, ['cid', 'mainPid']),
topics.getTopicFields(tid, ['tid', 'cid', 'mainPid']),
]);
pids.unshift(mainPid);