Update export-custom-emojis.ts

This commit is contained in:
syuilo 2021-12-12 06:24:13 +09:00
parent c599a304c8
commit ef485044ea

View file

@ -52,7 +52,7 @@ export async function exportCustomEmojis(job: Bull.Job, done: () => void): Promi
});
};
await writeMeta('[');
await writeMeta(`{"metaVersion":1,"emojis":[`);
const customEmojis = await Emojis.find({
where: {
@ -86,7 +86,7 @@ export async function exportCustomEmojis(job: Bull.Job, done: () => void): Promi
await writeMeta(isFirst ? content : ',\n' + content);
}
await writeMeta(']');
await writeMeta(']}');
metaStream.end();