mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 06:25:50 +01:00
Switch from underscore to lodash
This commit is contained in:
@@ -5,7 +5,7 @@ var winston = require('winston');
|
||||
var cron = require('cron').CronJob;
|
||||
var nconf = require('nconf');
|
||||
var S = require('string');
|
||||
var _ = require('underscore');
|
||||
var _ = require('lodash');
|
||||
|
||||
var db = require('./database');
|
||||
var User = require('./user');
|
||||
@@ -247,7 +247,7 @@ Notifications.pushGroups = function (notification, groupNames, callback) {
|
||||
groups.getMembersOfGroups(groupNames, next);
|
||||
},
|
||||
function (groupMembers, next) {
|
||||
var members = _.unique(_.flatten(groupMembers));
|
||||
var members = _.uniq(_.flatten(groupMembers));
|
||||
Notifications.push(notification, members, next);
|
||||
},
|
||||
], callback);
|
||||
|
||||
Reference in New Issue
Block a user