summary refs log tree commit diff
path: root/cdn/src/util/FileStorage.ts
diff options
context:
space:
mode:
authorAlTech98 <altech123159@gmail.com>2021-09-13 17:32:31 +0200
committerAlTech98 <altech123159@gmail.com>2021-09-13 17:32:31 +0200
commitaa1f1a22a4cce0c51d84c10d5a741699f7bbfff2 (patch)
treef11c5005d4870739ec3be422a84f2aba532af4fd /cdn/src/util/FileStorage.ts
parentFix attachments not being saved to db (diff)
downloadserver-aa1f1a22a4cce0c51d84c10d5a741699f7bbfff2.tar.xz
Delete attachments of deleted messages, fix #273
Diffstat (limited to '')
-rw-r--r--cdn/src/util/FileStorage.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/cdn/src/util/FileStorage.ts b/cdn/src/util/FileStorage.ts
index fae6eb1a..e0b24a84 100644
--- a/cdn/src/util/FileStorage.ts
+++ b/cdn/src/util/FileStorage.ts
@@ -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));
 	}
 }