mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-17 10:42:25 -05:00
When running the purge command I found about 4 users who could not be deleted because their user id was still referenced in the services table as they had created the service yet they were not a member of that service anymore. I have fixed this by checking that if they are not a member but created the service then we also delete the service for them. Note, I've followed the previous convention of no tests for this function. I've run it locally and executed the code path so there should be no major flaws in the code. There is a small chance I wasn't able to exactly replicate the state that existed in preview on my local but hopefully it was close enough to be accurate.
39 KiB
39 KiB