Skip to content

Commit

Permalink
fix: career-form.ts now uses the uploadV2 method because the upload m…
Browse files Browse the repository at this point in the history
…ethod will be retired in March 2025
  • Loading branch information
noa.santo committed Oct 17, 2024
1 parent 8c90534 commit 986775e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/career-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 986775e

Please sign in to comment.