From b36ced305865b2386833bbd3e3c9ff940813d6d4 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Sat, 5 Apr 2014 12:14:50 +0100 Subject: [PATCH] only poll dropbox users who have the dropbox feature --- .../ThirdPartyDataStore/TpdsPollingBackgroundTasks.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/app/coffee/Features/ThirdPartyDataStore/TpdsPollingBackgroundTasks.coffee b/services/web/app/coffee/Features/ThirdPartyDataStore/TpdsPollingBackgroundTasks.coffee index 80597b27a2..46afad2b18 100644 --- a/services/web/app/coffee/Features/ThirdPartyDataStore/TpdsPollingBackgroundTasks.coffee +++ b/services/web/app/coffee/Features/ThirdPartyDataStore/TpdsPollingBackgroundTasks.coffee @@ -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