Remove bookmarked_searches and love_compatibility_answers upon account deletion

This commit is contained in:
MartinBraquet
2025-10-13 17:35:12 +02:00
parent 13356950f3
commit b0148963c7

View File

@@ -26,6 +26,8 @@ export const deleteMe: APIHandler<'me/delete'> = async (body, auth) => {
await pg.none('DELETE FROM users WHERE id = $1', [userId])
await pg.none('DELETE FROM private_users WHERE id = $1', [userId])
await pg.none('DELETE FROM profiles WHERE user_id = $1', [userId])
await pg.none('DELETE FROM bookmarked_searches WHERE creator_id = $1', [userId])
await pg.none('DELETE FROM love_compatibility_answers WHERE creator_id = $1', [userId])
// May need to also delete from other tables in the future (such as messages, compatibility responses, etc.)
// Delete user files from Firebase Storage