mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
chore: eslint no-var, vars-on-top
This commit is contained in:
committed by
Julian Lam
parent
b56d9e12b5
commit
dab3b23575
@@ -154,7 +154,7 @@ SocketPosts.getReplies = async function (socket, pid) {
|
||||
|
||||
const pids = await posts.getPidsFromSet(`pid:${pid}:replies`, 0, -1, false);
|
||||
|
||||
var [postData, postPrivileges] = await Promise.all([
|
||||
let [postData, postPrivileges] = await Promise.all([
|
||||
posts.getPostsByPids(pids, socket.uid),
|
||||
privileges.posts.get(pids, socket.uid),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user