add jwt check
This commit is contained in:
@@ -26,6 +26,7 @@ class BaseRepo(Generic[ModelType]):
|
||||
statement = insert(self.model).values(data).returning(self.model)
|
||||
result = await self.session.execute(statement)
|
||||
obj: ModelType = result.scalar_one()
|
||||
print(obj)
|
||||
return obj
|
||||
|
||||
async def get_one_or_none(self, **filter_by: Any) -> ModelType | None:
|
||||
|
||||
Reference in New Issue
Block a user