_init_users on UserService was missing an await
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user