mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-13 11:23:50 +00:00
refactor: minor code cleanups
This commit is contained in:
committed by
Carlos Valente
parent
61280b06b7
commit
de9af5aaa2
@@ -58,10 +58,13 @@ export const storage = multer.diskStorage({
|
||||
},
|
||||
});
|
||||
|
||||
/**
|
||||
* Clears the directory that holds the uploads
|
||||
*/
|
||||
export async function clearUploadfolder() {
|
||||
try {
|
||||
await rm(uploadsFolderPath, { recursive: true });
|
||||
} catch (_) {
|
||||
//we dont care that there was no folder
|
||||
// we dont care that there was no folder
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user