Skip to content

Commit 09e3a44

Browse files
mamoon-17Copilot
andauthored
add zip file deletion after unzipping
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 35312fa commit 09e3a44

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

backend/src/modules/project/project.service.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ class ProjectService {
100100
} catch (e) {
101101
const message = e instanceof Error ? e.message : String(e);
102102
return err(`Upload failed: ${message}`);
103+
} finally {
104+
try {
105+
await fs.promises.unlink(zipPath);
106+
} catch {
107+
// Ignore errors during cleanup
108+
}
103109
}
104110
}
105111
}

0 commit comments

Comments
 (0)