janeirodigital / sai-js

Typescript library for Solid Application Interoperability
https://sai.js.org/
MIT License
8 stars 7 forks source link

Create delayed job for creating a new webhook channel before current expires #69

Open elf-pavlik opened 1 year ago

elf-pavlik commented 1 year ago

By default CSS has a two-week limit for channel duration. We can add BullMQ delayed job which will create a new channel a day before the current one expires.

A further improvement would be to change from one day to something calculated from channel duration.