fix async

This commit is contained in:
jxxghp
2025-07-31 07:07:14 +08:00
parent c5a3bbcecf
commit 749aaeb003
5 changed files with 76 additions and 100 deletions

View File

@@ -353,6 +353,8 @@ class Base:
@async_db_update
async def async_create(self, db: AsyncSession):
db.add(self)
await db.flush()
return self
@classmethod
@db_query