Correct requester ID column name for vanilla buddy requests

This commit is contained in:
Ben 2020-04-04 20:26:10 +01:00
parent 55ac7e3ff8
commit f5db24ca3a

View File

@ -128,7 +128,7 @@ async def handle_buddy_request(p, buddy_id: int):
buddy = p.server.penguins_by_id[buddy_id]
if buddy.client_type == ClientType.Vanilla and p.id not in buddy.buddy_requests:
await buddy.buddy_requests.insert(buddy_id=p.id)
await buddy.buddy_requests.insert(requester_id=p.id)
elif p.id not in buddy.legacy_buddy_requests:
buddy.legacy_buddy_requests.add(p.id)
else: