Fixed return error

This commit is contained in:
Sven Heidemann 2021-12-08 07:50:35 +01:00
parent e3ac78f97b
commit a10724a495

View File

@ -145,6 +145,8 @@ class ClientRepositoryService(ClientRepositoryABC):
self._logger.warn(__name__, f'Cannot find client by ids {id}@{server.server_id}')
raise Exception('Value not found')
return client
def apppend_sent_message_count(self, id: int, server_id: int, value: int):
client = self._get_client_and_server(id, server_id)
client.sent_message_count += value