Skip to content

Commit

Permalink
Small fix for file url
Browse files Browse the repository at this point in the history
  • Loading branch information
sushantpatil1214 committed Nov 21, 2024
1 parent cde5ce7 commit 2498246
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ routes.post('/upload', upload.single('file'), async (req, res) => {
}
const fileUrl = saveCsvToTmp(file.buffer, file.originalname);
try {
const fileUrl = saveCsvToTmp(file.buffer, file.originalname);
const uploadResult = await uploadToMinio(fileUrl, file.originalname, bucket as string, file.mimetype);
// Clean up the temporary file
fs.unlinkSync(fileUrl);
Expand Down

0 comments on commit 2498246

Please sign in to comment.