_init_users on UserService was missing an await

This commit is contained in:
Carlos-Mesquita
2024-12-16 14:46:42 +00:00
parent 05a2806daa
commit 0262971b11

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}