From 986775e32277205e377831f716de5d254a4ed042 Mon Sep 17 00:00:00 2001 From: "noa.santo" Date: Thu, 17 Oct 2024 16:31:20 +0200 Subject: [PATCH] fix: career-form.ts now uses the uploadV2 method because the upload method will be retired in March 2025 --- src/api/career-form.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/career-form.ts b/src/api/career-form.ts index 652203872..b0b272ffb 100644 --- a/src/api/career-form.ts +++ b/src/api/career-form.ts @@ -148,7 +148,7 @@ export default async function handler( }); for (const file of files) { - await client.files.upload({ + await client.files.uploadV2({ channels: CHANNEL_ID, thread_ts: postMessageResult.ts, file: file.buffer,