#253/Items that have been uploaded more than 6 months before should be automatically deleted#413
#253/Items that have been uploaded more than 6 months before should be automatically deleted#413idelinz wants to merge 1 commit intoenBloc-org:devfrom
Conversation
👷 Deploy request for cool-creponne-3e1272 pending review.Visit the deploys page to approve it
|
ShaughnAnderson94
left a comment
There was a problem hiding this comment.
This is cool I knew that there was built in chron jobs in supabase but have only done them elsewhere. So onto the non-resolved questions I am curious if you have some solutions in mind. I thought about it for a bit and for messages we could make it also check that there are no messages related to the item sent in the last 3 months. As for notifying the users I think it might be easiest to just notify them it has been deleted and they can reupload if they really think someone would want it. we could just have them be emailed when it is deleted. I have not used the built into supabase chron jobs but when on other projects I have just put a route into the next api the sends emails when its triggered by the chron job and something like that could probably be done here
Checklist:
Description
Relates #253
This PR does not resolve questions:
how would we notify them of this?
Files changed
20250324015132_add-pg_cron-job-to-delete-old-items- added new migrationTests
Not sure is it possible or needed