frontend: Édition profil + corrections backend

This commit is contained in:
Divlo
2020-04-08 00:47:24 +02:00
parent 3ed605af1b
commit 5d048f3010
11 changed files with 268 additions and 18 deletions

View File

@ -9,7 +9,7 @@ function deleteFilesNameStartWith(pattern, dirPath = __dirname) {
// Iterate through the found file names
for (const name of fileNames) {
// If file name matches the pattern
if (name.startsWith(pattern)) {
if (name.startsWith(pattern) && name !== 'default.png') {
console.log(name)
fs.unlinkSync(path.join(dirPath, name));
}