oncall
oncall copied to clipboard
fix: notifier state get's never persisted in database
- every time the notification starts, it reports a corrupted state
because the state never gets stored in the database.
saving the state in the database using
UPDATEsql only works when there is already one entry in the table, otherwise the query will run through with zero updated rows. so in the case when the state cannot be loaded, we properly create one record inside the notifier_state table