Skip to content

Commit 4d91da1

Browse files
committed
Fix warnings, all tests passed
1 parent 969ab9f commit 4d91da1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fastapi_users_db_dynamodb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,4 +455,4 @@ async def update_oauth_account(
455455
user.oauth_accounts[idx] = type(oauth_account)(**updated_item) # type: ignore
456456
break
457457

458-
return await self.get(user.id)
458+
return user

tests/test_users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class OAuthBase(BaseModel):
3030
model_config = ConfigDict(arbitrary_types_allowed=True, from_attributes=True)
3131

3232

33-
class OAuthAccount(DynamoDBBaseOAuthAccountTableUUID, OAuthBase):
33+
class OAuthAccount(OAuthBase, DynamoDBBaseOAuthAccountTableUUID):
3434
pass
3535

3636

0 commit comments

Comments
 (0)