Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yasirarism authored Sep 26, 2024
1 parent 20d89f3 commit 4d424cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/payment_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
async def delete_autopay(uniqueCode: str):
await autopay.delete_one({"_id": uniqueCode})

async def get_autopay(self, uniqueCode: str):
async def get_autopay(uniqueCode: str):
exists = await autopay.find_one({"_id": uniqueCode})
return exists

async def autopay_update(self, msg_id: Optional[int] = "", note: Optional[str] = "", user_id: Optional[int] = "", amount: Optional[int] = "", status: Optional[str] = "", uniqueCode: Optional[str] = "", createdAt: Optional[str] = ""):
async def autopay_update(msg_id: Optional[int] = "", note: Optional[str] = "", user_id: Optional[int] = "", amount: Optional[int] = "", status: Optional[str] = "", uniqueCode: Optional[str] = "", createdAt: Optional[str] = ""):
data = {"msg_id": msg_id, "note": note, "user_id": user_id, "amount": amount, "status": status, "createdAt": createdAt}
await autopay.update_one({"_id": uniqueCode}, {"$set": data}, upsert=True)

0 comments on commit 4d424cc

Please sign in to comment.