From 14ea4617e234f641e82421f65800fac643b3255d Mon Sep 17 00:00:00 2001 From: Joe Fleming Date: Tue, 3 May 2016 09:58:08 -0700 Subject: [PATCH] change the default content body --- src/worker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/worker.js b/src/worker.js index 826b695..f580575 100644 --- a/src/worker.js +++ b/src/worker.js @@ -100,13 +100,14 @@ export default class Job extends events.EventEmitter { _formatOutput(output) { const unknownMime = false; + const defaultOutput = null; const docOutput = {}; if (typeof output === 'object' && output.content) { docOutput.content = output.content; docOutput.content_type = output.content_type || unknownMime; } else { - docOutput.content = output || ''; + docOutput.content = output || defaultOutput; docOutput.content_type = unknownMime; }