Skip to content

Commit

Permalink
fix: return 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
GIVEN53 committed Oct 14, 2023
1 parent f2df0da commit 9730de9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions function/notification/notification.py
Original file line number Diff line number Diff line change
@@ -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}')

0 comments on commit 9730de9

Please sign in to comment.