mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
chore: remove logs
This commit is contained in:
@@ -59,7 +59,6 @@ module.exports = function (Messaging) {
|
||||
async function sendNotifications(fromuid, uids, roomId, messageObj) {
|
||||
const hasRead = await Messaging.hasRead(uids, roomId);
|
||||
uids = uids.filter((uid, index) => !hasRead[index] && parseInt(fromuid, 10) !== parseInt(uid, 10));
|
||||
console.log('checking notif', uids, hasRead);
|
||||
if (!uids.length) {
|
||||
delete Messaging.notifyQueue[`${fromuid}:${roomId}`];
|
||||
return;
|
||||
|
||||
@@ -21,7 +21,6 @@ module.exports = function (Messaging) {
|
||||
};
|
||||
|
||||
Messaging.markRead = async (uid, roomId) => {
|
||||
console.log('mark read :)', uid, roomId);
|
||||
await db.sortedSetRemove(`uid:${uid}:chat:rooms:unread`, roomId);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user