mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
committed by
Wyatt Johnson
parent
008a4fd7d5
commit
197fbc33e0
@@ -85,7 +85,7 @@ const onConnect = async (connectionParams, connection) => {
|
||||
*/
|
||||
const batchedUserRefresher = new DataLoader(
|
||||
userIDs => {
|
||||
console.log(`OPERATION: refreshing ${userIDs.length} users.`);
|
||||
debug(`OPERATION: refreshing ${userIDs.length} users.`);
|
||||
return User.find({ id: { $in: userIDs } }).then(
|
||||
singleJoinBy(userIDs, 'id')
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user