Don't make useless requests to friends
This commit is contained in:
parent
c158027179
commit
155098af55
|
@ -29,6 +29,8 @@
|
||||||
PoolRequestsDB.find({}, { type: 1, request: 1 }, function (err, pool_requests) {
|
PoolRequestsDB.find({}, { type: 1, request: 1 }, function (err, pool_requests) {
|
||||||
if (err) throw err
|
if (err) throw err
|
||||||
|
|
||||||
|
if (pool_requests.length === 0) return
|
||||||
|
|
||||||
var requests = {
|
var requests = {
|
||||||
add: [],
|
add: [],
|
||||||
remove: []
|
remove: []
|
||||||
|
|
Loading…
Reference in New Issue