Merged in release/async (pull request #46)

_init_users on UserService was missing an await

Approved-by: Tiago Ribeiro
This commit is contained in:
carlos.mesquita
2024-12-16 15:29:59 +00:00
committed by Tiago Ribeiro

View File

@@ -35,7 +35,7 @@ class UserService(IUserService):
self._db = document_store
self._logger = getLogger(__name__)
def batch_users(self, batch_dto: BatchUsersDTO):
async def batch_users(self, batch_dto: BatchUsersDTO):
file_name = f'{uuid.uuid4()}.csv'
path = f'./tmp/{file_name}'
self._generate_firebase_auth_csv(batch_dto, path)
@@ -46,7 +46,7 @@ class UserService(IUserService):
self._logger.error(error_msg)
return error_msg
self._init_users(batch_dto)
await self._init_users(batch_dto)
FileHelper.remove_file(path)
return {"ok": True}