mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 01:45:47 +01:00
fix message delete and add test
This commit is contained in:
@@ -16,7 +16,7 @@ module.exports = function (Messaging) {
|
||||
var keys = uids.map(function (uid) {
|
||||
return 'uid:' + uid + ':chat:room:' + roomId + ':mids';
|
||||
});
|
||||
db.sortedSetsRemove(keys, roomId, next);
|
||||
db.sortedSetsRemove(keys, mid, next);
|
||||
},
|
||||
function (next) {
|
||||
db.delete('message:' + mid, next);
|
||||
|
||||
Reference in New Issue
Block a user