From df47ae863fe43995eaf22c59bd914a70f37095bf Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 22 Apr 2018 07:50:09 +0900 Subject: [PATCH] Fix bug --- src/queue/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/queue/index.ts b/src/queue/index.ts index 8338d8398..32fd043f79 100644 --- a/src/queue/index.ts +++ b/src/queue/index.ts @@ -14,6 +14,7 @@ const queue = createQueue({ export function createHttp(data) { return queue .create('http', data) + .removeOnComplete(true) .events(false) .attempts(8) .backoff({ delay: 16384, type: 'exponential' }); @@ -26,7 +27,7 @@ export function deliver(user, content, to) { user, content, to - }).removeOnComplete(true).save(); + }).save(); } export default function() {