mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 07:33:08 +02:00
Fix bug
This commit is contained in:
parent
40849a5aa8
commit
7ee0cad010
1 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,7 @@ const queue = createQueue({
|
||||||
export function createHttp(data) {
|
export function createHttp(data) {
|
||||||
return queue
|
return queue
|
||||||
.create('http', data)
|
.create('http', data)
|
||||||
|
.removeOnComplete(true)
|
||||||
.events(false)
|
.events(false)
|
||||||
.attempts(8)
|
.attempts(8)
|
||||||
.backoff({ delay: 16384, type: 'exponential' });
|
.backoff({ delay: 16384, type: 'exponential' });
|
||||||
|
@ -26,7 +27,7 @@ export function deliver(user, content, to) {
|
||||||
user,
|
user,
|
||||||
content,
|
content,
|
||||||
to
|
to
|
||||||
}).removeOnComplete(true).save();
|
}).save();
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function() {
|
export default function() {
|
||||||
|
|
Loading…
Reference in a new issue