Convert integer dropbox id to string when searching mongo

This commit is contained in:
James Allen 2014-08-13 17:34:45 +01:00
parent 670e8e5cb9
commit 604505131b

View file

@ -14,7 +14,7 @@ module.exports = DropboxWebhookHandler =
pollDropboxUid: (dropbox_uid, callback = (error) ->) -> pollDropboxUid: (dropbox_uid, callback = (error) ->) ->
User.find { User.find {
"dropbox.access_token.uid": dropbox_uid "dropbox.access_token.uid": dropbox_uid.toString()
"features.dropbox": true "features.dropbox": true
}, (error, users = []) -> }, (error, users = []) ->
return callback(error) if error? return callback(error) if error?