mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
only poll dropbox users who have the dropbox feature
This commit is contained in:
parent
33b6626fd9
commit
b36ced3058
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ self = module.exports =
|
|||
callback()
|
||||
|
||||
_getUserIdsWithDropbox: (callback)->
|
||||
User.find {"dropbox.access_token.oauth_token_secret":{"$exists":true}}, "_id", (err, users)->
|
||||
User.find {"dropbox.access_token.oauth_token_secret":{"$exists":true}, "features.dropbox":true}, "_id", (err, users)->
|
||||
ids = users.map (user)->
|
||||
return user._id+""
|
||||
callback err, ids
|
||||
|
|
Loading…
Reference in a new issue