upstash / qstash-js

Message queue for serverless
https://docs.upstash.com/qstash
MIT License
160 stars 15 forks source link

Add missing unit for delay header #9

Closed spyl94 closed 2 years ago

spyl94 commented 2 years ago

This is a bug fix for :

{"error":"invalid Upstash-Delay header: time: missing unit in duration \"1\""}

According to documentation, we need to send "Upstash-Delay: 1s", I just added the missing unit in the header.

chronark commented 2 years ago

Nice catch, I'll release a fix right away