stackexchange
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -18,3 +18,3 @@ 'use strict'; | ||
*/ | ||
function answers (criteria, callback, ids) { | ||
function answers (criteria, callback, ids) { | ||
ids = ids || []; | ||
@@ -54,3 +54,3 @@ query('answers/' + ids.join(';'), criteria, callback); | ||
if(!criteria['key'] || !criteria['access_token']) { | ||
return callback(new Error('answers.upvote lacks key and/or access token as criteria')); | ||
return callback(new Error('answers.downvote lacks key and/or access token as criteria')); | ||
} | ||
@@ -57,0 +57,0 @@ undo = undo? "/undo" : ""; |
@@ -36,5 +36,4 @@ 'use strict'; | ||
} | ||
return callback(undefined, body); | ||
})(); | ||
}; |
{ | ||
"name": "stackexchange", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "Node.js implementation of the stackexchange/stackoverflow API", | ||
@@ -5,0 +5,0 @@ "main": "./lib/stackexchange", |
Sorry, the diff of this file is not supported yet
17440