From a521baf2773c195670e20478a141c29652a4905b Mon Sep 17 00:00:00 2001 From: Regalijan Date: Tue, 26 Mar 2024 04:14:31 -0400 Subject: [PATCH] Await the coconut token put --- functions/api/reports/complete.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/api/reports/complete.ts b/functions/api/reports/complete.ts index cb75901..609ca0e 100644 --- a/functions/api/reports/complete.ts +++ b/functions/api/reports/complete.ts @@ -77,7 +77,7 @@ export async function onRequestPost(context: RequestContext) { }, method: "POST", }), - context.env.DATA.put(`coconutjob_${attachment}`, token, { + await context.env.DATA.put(`coconutjob_${attachment}`, token, { expirationTtl: 600, }), );