mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
forgot to add records for handler
This commit is contained in:
parent
50d3c74dee
commit
093b93ec1c
1 changed files with 3 additions and 2 deletions
|
|
@ -13,12 +13,13 @@ from typing import Any
|
||||||
|
|
||||||
|
|
||||||
# @subtask_handler() TODO: Do this without subtask_handler but task_handler() that creates task_id and subtask_id
|
# @subtask_handler() TODO: Do this without subtask_handler but task_handler() that creates task_id and subtask_id
|
||||||
def handler(body: dict[str, Any], context: Any, local: bool = False) -> None:
|
def handler(event: dict[str, Any], context: Any, local: bool = False) -> None:
|
||||||
if local is True:
|
if local is True:
|
||||||
body = {
|
body = {
|
||||||
"hubspot_deal_id": "254427203793",
|
"hubspot_deal_id": "409487859944",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body = event["Records"][0]["body"]
|
||||||
hubspot_deal_id = body.get("hubspot_deal_id", "")
|
hubspot_deal_id = body.get("hubspot_deal_id", "")
|
||||||
|
|
||||||
if hubspot_deal_id == "":
|
if hubspot_deal_id == "":
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue