forked from torrust/torrust-index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: [torrust#84] restore behavior. Update torrent stats after upload
When a new torrent is uploaded we have to update the tracker torrent stats in the `torrust_torrent_tracker_stats` table. It was from the UI but not for the DB migration script becuase the frontend makes a request to get the torrent info after the upload and that endpint updates the torrent tracket stats. It must update the stats even if that endpoint is not called after uploading a new torrent.
- Loading branch information
1 parent
59b1ea8
commit c291557
Showing
2 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters