Skip to content

Delete saved searches when a user is hard deleted

Administrator requested to merge asdine/fix-delete-user into main

Created by: asdine

When a user that has saved searches gets hard deleted, it produces a key constraint violation. This PR fixes this by deleting the saved searches prior to deleting the user.

Fixes https://github.com/sourcegraph/customer/issues/181

Merge request reports

Loading