summary refs log tree commit diff
path: root/cdn/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-13 17:59:21 +0200
committerGitHub <noreply@github.com>2021-09-13 17:59:21 +0200
commita00c87d8ba2e8e3dd6f1cd7ed9ee5ed6259c7f19 (patch)
treef11c5005d4870739ec3be422a84f2aba532af4fd /cdn/src
parent:bug: fix In() query (diff)
parentDelete attachments of deleted messages, fix #273 (diff)
downloadserver-a00c87d8ba2e8e3dd6f1cd7ed9ee5ed6259c7f19.tar.xz
Merge pull request #355 from AlTech98/attachments
Attachments fixes
Diffstat (limited to 'cdn/src')
-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)); } }