From 8aa04c132fe8f7f789de3f558b0bcbcc02d091f1 Mon Sep 17 00:00:00 2001 From: hyeon Date: Thu, 1 Aug 2024 16:11:49 +0900 Subject: [PATCH 1/2] Add missing permission --- worker/worker_cdk_stack.py | 1 + 1 file changed, 1 insertion(+) diff --git a/worker/worker_cdk_stack.py b/worker/worker_cdk_stack.py index 2dd5aa8..1d4beed 100644 --- a/worker/worker_cdk_stack.py +++ b/worker/worker_cdk_stack.py @@ -72,6 +72,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None: shared_stack.apple_credential_arn, shared_stack.kms_key_id_arn, shared_stack.voucher_jwt_secret_arn, + shared_stack.headless_gql_jwt_secret_arn, ] ) ) From 2bf70fb245555ceb34977cebf557714cd884bda0 Mon Sep 17 00:00:00 2001 From: hyeon Date: Thu, 1 Aug 2024 16:19:46 +0900 Subject: [PATCH 2/2] Fix: Move package_name to right message --- iap/api/purchase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iap/api/purchase.py b/iap/api/purchase.py index 3febf54..1b8b223 100644 --- a/iap/api/purchase.py +++ b/iap/api/purchase.py @@ -279,7 +279,6 @@ def request_product(receipt_data: ReceiptSchema, "agent_addr": receipt.agent_addr, "avatar_addr": receipt.avatar_addr, "planet_id": receipt_data.planetId.decode(), - "package_name": receipt.package_name, })) logger.info(f"Voucher message: {resp['MessageId']}") @@ -343,6 +342,7 @@ def request_product(receipt_data: ReceiptSchema, "product_id": product.id, "uuid": str(receipt.uuid), "planet_id": receipt_data.planetId.decode('utf-8'), + "package_name": receipt.package_name, } resp = sqs.send_message(QueueUrl=SQS_URL, MessageBody=json.dumps(msg))