medusa-project / book-tracker

Medusa Book Tracker
0 stars 0 forks source link

CSV format BooksController::Live::ClientDisconnected #43

Closed gaurijo closed 11 months ago

gaurijo commented 11 months ago

This applies the same fix used for Rescue ActionController::Live::ClientDisconnected, but this time it rescues the CSV export when disconnected early.

This was tested locally by starting a CSV export, stopping the download prematurely and seeing a 500 Internal Server Error in the server terminal.

Screenshot 2023-12-08 at 1 15 15 PM

Once the rescue action was implemented, I ran the same exact steps and it succeeds with the expected rescue message.

Screenshot 2023-12-08 at 1 15 27 PM