From 4ce8ea89a804a77a4d18f75180f69e1242bcc96a Mon Sep 17 00:00:00 2001 From: Hugo Costa Date: Wed, 26 Jul 2023 15:10:00 -0300 Subject: [PATCH] fix: custom emoji file upload with FileSystem method (#29795) --- .changeset/custom-emoji-fs.md | 5 +++++ apps/meteor/app/file/server/file.server.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/custom-emoji-fs.md diff --git a/.changeset/custom-emoji-fs.md b/.changeset/custom-emoji-fs.md new file mode 100644 index 000000000000..a9a797f35bc8 --- /dev/null +++ b/.changeset/custom-emoji-fs.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/meteor": patch +--- + +fix: custom emoji upload with FileSystem method diff --git a/apps/meteor/app/file/server/file.server.ts b/apps/meteor/app/file/server/file.server.ts index ebd869e690b7..1c27c95ef741 100644 --- a/apps/meteor/app/file/server/file.server.ts +++ b/apps/meteor/app/file/server/file.server.ts @@ -195,7 +195,7 @@ class FileSystem implements IRocketChatFileStore { async deleteFile(fileName: string) { try { - return this.remove(fileName); + return await this.remove(fileName); } catch (error1) { // }