From 4368720f80de8749f88bc0d6dc97c71aeaa9b000 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Mon, 6 Nov 2023 20:52:49 +0100 Subject: [PATCH] Fixed remove user process --- bot/src/bot_core/service/data_integrity_service.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bot/src/bot_core/service/data_integrity_service.py b/bot/src/bot_core/service/data_integrity_service.py index cb3c0f6f..83f53551 100644 --- a/bot/src/bot_core/service/data_integrity_service.py +++ b/bot/src/bot_core/service/data_integrity_service.py @@ -398,6 +398,9 @@ class DataIntegrityService: if user is None: continue + for join in self._user_joins.get_user_joined_servers_by_user_id(user.id): + self._user_joins.delete_user_joined_server(join) + self._user_joins_vc.delete_user_joined_voice_channel_by_user_id(user.id) self._users.delete_user(user) self._db_context.save_changes()