socializr
Advanced tools
Comparing version 0.2.27 to 0.2.28
@@ -155,10 +155,11 @@ var stream = require('stream') | ||
data = res.body.data.data | ||
data = res.body.data; | ||
data = data instanceof Array ? data : [data]; | ||
type = type instanceof Array ? type : [type]; | ||
console.log('unsubscribing tags', type); | ||
console.log('unsubscribing tags', type,data); | ||
for(var i in data) { | ||
d = data[ i]; | ||
if( type.indexOf(d.object_id)){ | ||
if( type.indexOf(d.object_id) !== -1 ){ | ||
self._apiRequest( 'subscriptions', 'DELETE', { | ||
@@ -169,3 +170,3 @@ client_id: self.clientId, | ||
}, function(err,res){ | ||
console.log('unsubscribe instagram', type[i], res.body) | ||
console.log('unsubscribe instagram', err, type[i], res.body); | ||
}); | ||
@@ -172,0 +173,0 @@ } |
{ | ||
"name": "socializr", | ||
"version": "0.2.27", | ||
"version": "0.2.28", | ||
"description": "Read data streams from several social networks.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
53511
1913