Merged in release/async (pull request #46)
_init_users on UserService was missing an await Approved-by: Tiago Ribeiro
This commit is contained in:
@@ -35,7 +35,7 @@ class UserService(IUserService):
|
|||||||
self._db = document_store
|
self._db = document_store
|
||||||
self._logger = getLogger(__name__)
|
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'
|
file_name = f'{uuid.uuid4()}.csv'
|
||||||
path = f'./tmp/{file_name}'
|
path = f'./tmp/{file_name}'
|
||||||
self._generate_firebase_auth_csv(batch_dto, path)
|
self._generate_firebase_auth_csv(batch_dto, path)
|
||||||
@@ -46,7 +46,7 @@ class UserService(IUserService):
|
|||||||
self._logger.error(error_msg)
|
self._logger.error(error_msg)
|
||||||
return error_msg
|
return error_msg
|
||||||
|
|
||||||
self._init_users(batch_dto)
|
await self._init_users(batch_dto)
|
||||||
|
|
||||||
FileHelper.remove_file(path)
|
FileHelper.remove_file(path)
|
||||||
return {"ok": True}
|
return {"ok": True}
|
||||||
|
|||||||
Reference in New Issue
Block a user