mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2026-03-13 07:49:55 +08:00
Change examples so every dependencies are async
This commit is contained in:
@@ -31,5 +31,5 @@ users = UserTable.__table__
|
||||
oauth_accounts = OAuthAccount.__table__
|
||||
|
||||
|
||||
def get_user_db():
|
||||
async def get_user_db():
|
||||
yield SQLAlchemyUserDatabase(UserDB, database, users, oauth_accounts)
|
||||
|
||||
Reference in New Issue
Block a user