fix type
This commit is contained in:
parent
3c4b7d3bd0
commit
fd5976f378
3 changed files with 30 additions and 3 deletions
|
@ -80,7 +80,7 @@ export class ExportCustomEmojisProcessorService {
|
|||
});
|
||||
|
||||
for (const emoji of customEmojis) {
|
||||
const ext = mime.extension(emoji.type);
|
||||
const ext = mime.extension(emoji.type ?? 'image/png');
|
||||
const fileName = emoji.name + (ext ? '.' + ext : '');
|
||||
const emojiPath = path + '/' + fileName;
|
||||
fs.writeFileSync(emojiPath, '', 'binary');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue