From 9a8f4beb2a6ffff04e3439418076bccb29cd05cd Mon Sep 17 00:00:00 2001 From: "Johannes J. Schmidt" Date: Tue, 15 Apr 2014 16:21:32 +0200 Subject: [PATCH] (resolves #14) - do not process attachments twice --- index.js | 4 +++- package.json | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 9407572..886813b 100755 --- a/index.js +++ b/index.js @@ -72,7 +72,9 @@ couchmagick.get({ stream.on('error', couchmagick.error); stream.on('data', function(data) { - couchmagick.info(data.response); + if (data.response) { + couchmagick.info(data.response); + } }); stream.on('end', next); } diff --git a/package.json b/package.json index 7677c20..8b75123 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "couchmagick", - "version": "1.7.0", + "version": "1.8.0", "description": "Run ImageMagicks `convert` on CouchDB documents.", "main": "index.js", "preferGlobal": true, @@ -28,7 +28,7 @@ "homepage": "https://github.com/jo/couchmagick", "dependencies": { "async": "~0.2.9", - "couchmagick-listen": "~1.5.6", + "couchmagick-listen": "~1.6.0", "couch-daemon": "~1.2.1", "nano": "~4.2.1" },