From 9730de99c2712e2bd73cd07bfebf8f6888d52d67 Mon Sep 17 00:00:00 2001 From: NAM GIBEOM Date: Sat, 14 Oct 2023 19:06:07 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20return=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- function/notification/notification.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/function/notification/notification.py b/function/notification/notification.py index 887cbd9..383ef44 100644 --- a/function/notification/notification.py +++ b/function/notification/notification.py @@ -1,13 +1,13 @@ -import json import fcm def lambda_handler(event, context): for record in event["Records"]: payload = record["kinesis"]["data"] + token = payload["registration_token"] title = payload["title"] body = payload["body"] - result = fcm.send_message(token, title, body) - return {"statusCode": 200, "body": json.dumps(result)} + result = fcm.send_message(token, title, body) + print(f'"statusCode": 200, "body": {result}')