File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77from app .services import auth
88from app .schemas import Token , TokenPayload , Community
99from app .services .database .models import Community as DBCommunity
10- from app . services .database .community import get_community_by_username
10+ from services .database . orm .community import get_community_by_username
1111
1212oauth2_scheme = OAuth2PasswordBearer (tokenUrl = "/authentication/token" )
1313
@@ -31,7 +31,7 @@ async def create_community(request: Request ):
3131 password = "123Asd!@#"
3232 hashed_password = auth .hash_password (password )
3333 community = DBCommunity (username = "username" , email = "username@test.com" , password = hashed_password )
34- session = request .app .db_session_factory
34+ session : AsyncSession = request .app .db_session_factory
3535 session .add (community )
3636 await session .commit ()
3737 await session .refresh (community )
File renamed without changes.
You can’t perform that action at this time.
0 commit comments