Skip to content

Commit 71a0512

Browse files
committed
Removed useless class in amap schemas
1 parent 77975be commit 71a0512

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

app/modules/amap/endpoints_amap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ async def add_order_to_delievery(
456456

457457
# If the balance does not exist, we create a new one with a balance of 0
458458
if not balance:
459-
new_cash_db = schemas_amap.CashDB(
459+
new_cash_db = schemas_amap.CashBase(
460460
balance=0,
461461
user_id=order.user_id,
462462
)

app/modules/amap/schemas_amap.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,6 @@ class CashComplete(CashBase):
126126
user: CoreUserSimple
127127

128128

129-
class CashDB(CashBase):
130-
user_id: str
131-
132-
133129
class CashEdit(BaseModel):
134130
balance: float
135131

0 commit comments

Comments
 (0)