tdm-calculator
tdm-calculator copied to clipboard
1635 Clear trash projects quick fix
Fixes #1635
What changes did you make?
When users view their saved projects, the fetch function now includes an imbedded delete function that scans through the fetched projects and deletes any that are in the trash and 30 days old.
Why did you make the changes (we will use this info to test)?
The idea is for TDM to automatically delete all projects in the database that have been in the trash for 30 days. For now, we don't have that built into the back end, so we have the users automatically check and clean their own trash bin whenever they look at their projects. This does present a problem is the user trashes a bunch of projects and never logs in again, leaving their trash uncleaned, but this should work for now.