From 936254c86a506579d2ac254df191b641674afe50 Mon Sep 17 00:00:00 2001 From: Liz/Alice Cray Date: Thu, 14 Nov 2024 20:19:33 -0500 Subject: [PATCH] Enable system response to Amazon locker emails --- index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.mjs b/index.mjs index 44f2375..091c645 100644 --- a/index.mjs +++ b/index.mjs @@ -6,7 +6,7 @@ import { export const handler = async (event) => { console.info("Event: ", event); let result = "did not send"; - if (event.subject.includes("You have deliveries") || event.subject.includes("You have a delivery")) { + if (event.subject.includes("You have deliveries") || event.subject.includes("You have a delivery") || event.subject.includes("You have a package to pick up")) { // Trigger home notification console.info("Matched Subject"); const command = `ssh ${process.env.INTERNAL_HOST} "/home/liz/.sound '${process.env.INTERNAL_FILE}'"`;