Skip to content

Commit bbf5e3b

Browse files
committed
.
1 parent d628db2 commit bbf5e3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/repositories/abstract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __init__(self, model: Type[AbstractModel], session: AsyncSession):
2424
self.session = session
2525

2626
async def create(self, model: AbstractModel) -> AbstractModel:
27-
self.model.model_validate(model)
27+
model = self.model.model_validate(model)
2828
self.session.add(model)
2929
await self.session.commit()
3030
await self.session.refresh(model)

0 commit comments

Comments
 (0)