Skip to content

Commit

Permalink
Fix filename
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Sep 3, 2024
1 parent 374aaba commit f07c2d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dashboard/src/app/api/webhook/inbox/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export async function POST(req: Request) {
const { content, mimeType, size, fileName, name } =
await prepareDocument(attachment);

const uniqueFileName = `${fileName}_${nanoid(4)}`;
const uniqueFileName = `${nanoid(4)}_${fileName}`;

const { data } = await supabase.storage
.from("vault")
Expand Down

0 comments on commit f07c2d4

Please sign in to comment.