refactor: removed nullable in models
This commit is contained in:
@ -50,7 +50,7 @@ class RepCreateMixin(Generic[EntityType, CreateSchemaType], RepBaseMixin[EntityT
|
||||
prepared_data = await self._prepare_create(data)
|
||||
obj = self.entity_class(**prepared_data)
|
||||
self.session.add(obj)
|
||||
await self.session.flash()
|
||||
await self.session.flush()
|
||||
await self.session.refresh(obj)
|
||||
await self._after_create(obj, data)
|
||||
await self.session.commit()
|
||||
|
||||
Reference in New Issue
Block a user