funidata / hybridilusmu

Hybridityöskentelyn tukisovellus Slack-integraatiolla, HY Ohtuprojekti 2021 syksy
https://funidata.github.io/hybridilusmu/
1 stars 0 forks source link

Fix scheduled messages not being updated on newly subscribed jobs #105

Open VoxBorealis opened 1 year ago

VoxBorealis commented 1 year ago

For some reason the app is not updating/editing the scheduled messages in the Tampere channel in production. Locally everything works as intended.

VoxBorealis commented 1 year ago

There is a bug in the scheduleMessage function. Currently it only saves the job to the database when it has already found any job on the given channel -- this means that newly created jobs are never saved to the database unless you perform the /tilaa command twice.

TODO:

VoxBorealis commented 1 year ago

It appears that even though the job is saved to the DB, it will not persist through restarts(?)