mai2: properly add present items

This commit is contained in:
Kevin Trocolli
2024-06-28 23:55:23 -04:00
parent af8bd1d1c0
commit ecb2e9ec75
2 changed files with 11 additions and 6 deletions

View File

@@ -490,7 +490,6 @@ class Mai2Base:
pres_id += present['itemId']
items.append({"itemId": pres_id, "itemKind": 4, "stock": present['stock'], "isValid": True})
self.logger.info(f"Give user {data['userId']} {present['stock']}x item {present['itemId']} (kind {present['itemKind']}) as present")
await self.data.item.put_item(data["userId"], present['itemKind'], present['itemId'], present['stock'], True)
return { "userId": data.get("userId", 0), "length": len(items), "userPresentList": items}