Fixed database module

This commit is contained in:
Sven Heidemann 2021-12-08 17:45:05 +01:00
parent 4955eb3a19
commit c6e52039cb

View File

@ -201,7 +201,7 @@ class Database(ModuleABC, OnReadyABC):
self._logger.trace(__name__, f'User {u.id} is ignored, because its a bot')
continue
user = self._users.find_user_by_discord_id(u.id)
user = self._users.find_user_by_discord_id_and_server_id(u.id, server.server_id)
if user is None:
self._logger.fatal(__name__, f'User not found in database: {u.id}')