mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-08-04 21:29:33 +02:00
chore: eslint function-paren-newline
This commit is contained in:
committed by
Julian Lam
parent
dab3b23575
commit
62869bae3d
@@ -79,8 +79,10 @@ async function getRoomMessages(uid, roomId) {
|
||||
let data = [];
|
||||
await batch.processSortedSet(`uid:${uid}:chat:room:${roomId}:mids`, async (mids) => {
|
||||
const messageData = await db.getObjects(mids.map(mid => `message:${mid}`));
|
||||
data = data.concat(messageData.filter(m => m && m.fromuid === uid && !m.system)
|
||||
.map(m => ({ content: m.content, timestamp: m.timestamp }))
|
||||
data = data.concat(
|
||||
messageData
|
||||
.filter(m => m && m.fromuid === uid && !m.system)
|
||||
.map(m => ({ content: m.content, timestamp: m.timestamp }))
|
||||
);
|
||||
}, { batch: 500, interval: 1000 });
|
||||
return data;
|
||||
|
||||
Reference in New Issue
Block a user