interledger-deprecated / five-bells-shared

Common elements that are shared between Five Bells components
Other
4 stars 5 forks source link

Don't destroy notifications #143

Open MatthewPhinney opened 8 years ago

MatthewPhinney commented 8 years ago

According to Abraham, we should not be deleting rows in the db. Instead of deleting failed notifications, we should add a status column to the notifications table, and update the notification with status=failed. The relevant code is here: https://github.com/interledger/five-bells-shared/blob/81711eb3eb76f2f2d3425455baf448cc79ffa035/lib/notificationScheduler.js#L60.