mirror of
https://github.com/marcogll/TaxHacker_s23.git
synced 2026-01-13 13:25:18 +00:00
feat: safer backups
This commit is contained in:
@@ -74,7 +74,7 @@ export const deleteFile = async (id: string, userId: string) => {
|
||||
}
|
||||
|
||||
try {
|
||||
await unlink(path.resolve(file.path))
|
||||
await unlink(path.resolve(path.normalize(file.path)))
|
||||
} catch (error) {
|
||||
console.error("Error deleting file:", error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user