From 55469939d50c111683b535b4d583850fc539af26 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Sun, 24 Mar 2024 02:39:45 -0400 Subject: [PATCH] Add notification object to coconut job --- functions/api/reports/complete.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/functions/api/reports/complete.ts b/functions/api/reports/complete.ts index 9ab5b11..72ad807 100644 --- a/functions/api/reports/complete.ts +++ b/functions/api/reports/complete.ts @@ -46,6 +46,14 @@ export async function onRequestPost(context: RequestContext) { region: "us-east-1", service: "s3other", }, + notification: { + params: { + report_id: id, + token: coconutData.token, + }, + type: "http", + url: `https://${context.request.headers.get("host")}/api/coconut`, + }, outputs: { mp4: { path: `/${attachment}`,