Skip to content

Commit

Permalink
i dont like types sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
RiskyMH committed Jan 21, 2025
1 parent aa8fa10 commit c62fb68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/app/api/v0/receive-email/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export async function POST(request: Request) {
for (const attachment of email.attachments) {
const name = attachment.filename || attachment.mimeType || createId();

const attContent = Buffer.from(attachment.content);
const attContent = Buffer.from(attachment.content as ArrayBuffer);
const attId = createId();
await db
.insert(EmailAttachments)
Expand Down

0 comments on commit c62fb68

Please sign in to comment.