Leo/Backend #95

Merged
tonitch merged 6 commits from Leo/Backend into master 2024-03-13 18:06:35 +01:00
Showing only changes of commit 5c7147bb17 - Show all commits

View File

@ -56,12 +56,8 @@ public class StorageService {
public void delete(StorageFile file) throws SecurityException {
File f = new File(file.getUrl());
//Delete le fichier
try{
f.delete();
} catch (Exception e) {
throw new SecurityException();
}
f.delete();
//Delete l'entité
fileRepo.delete(file);
}