mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 08:17:57 +02:00
mark register notif read when its rejected
This commit is contained in:
@@ -120,7 +120,14 @@ module.exports = function(User) {
|
||||
}
|
||||
|
||||
User.rejectRegistration = function(username, callback) {
|
||||
removeFromQueue(username, callback);
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
removeFromQueue(username, next);
|
||||
},
|
||||
function (next) {
|
||||
markNotificationRead(username, next);
|
||||
}
|
||||
], callback);
|
||||
};
|
||||
|
||||
function removeFromQueue(username, callback) {
|
||||
|
||||
Reference in New Issue
Block a user