fix query in fetch_transactions_page_count()
@@ -224,7 +224,7 @@ class Database(commands.Cog):
async def fetch_transactions_page_count(self, user_id: int, limit: int = 10) -> int:
return (
- await self.db.fetchval("SELECT COUNT(*) FROM give_logs WHERE giver_user_id = $1 OR recvr_user_id = $1", user_id)
+ await self.db.fetchval("SELECT COUNT(*) FROM give_logs WHERE sender = $1 OR receiver = $1", user_id)
// limit
)
