Delete attachments of deleted messages, fix #273

This commit is contained in:
AlTech98
2021-09-13 17:32:31 +02:00
parent 12c92a2950
commit aa1f1a22a4
6 changed files with 36 additions and 4 deletions
+1
View File
@@ -37,6 +37,7 @@ export class FileStorage implements Storage {
}
async delete(path: string) {
//TODO we should delete the parent directory if empty
fs.unlinkSync(getPath(path));
}
}