updated with redo

This commit is contained in:
Martin Donnelly 2016-03-04 17:11:05 +00:00
parent fec22d19fc
commit 5013979a18

View File

@ -167,9 +167,23 @@ function processBody(body, url, _id, _rev) {
}
function genericGrab(obj,res) {
var url = obj.url;
var _id = obj._id || null;
var _ver = obj._rev || null;
var url, _id=null, _ver=null;
if (typeof obj === 'string')
{
logger.info(obj);
url =obj;
}
else
{
url = obj.url;
_id = obj._id || null;
_ver = obj._rev || null;
}
logger.warn(typeof obj);
logger.info(url);
logger.info(_id);