Skip to content
Snippets Groups Projects
Commit 3e00ce0d authored by syuilo's avatar syuilo
Browse files

fix(server): エクスポートした絵文字の拡張子がfalseになることがあるのを修正

parent b14e347d
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,8 @@ export async function exportCustomEmojis(job: Bull.Job, done: () => void): Promi
for (const emoji of customEmojis) {
const exportId = ulid().toLowerCase();
const emojiPath = path + '/' + exportId + '.' + mime.extension(emoji.type);
const ext = mime.extension(emoji.type);
const emojiPath = path + '/' + exportId + (ext ? '.' + ext : '');
fs.writeFileSync(emojiPath, '', 'binary');
let downloaded = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment